<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Additional information (Fixed/Move/Update?):</div>
<div> </div>
<div>Examining bug further, it seems that the bug only affects certain circumstances such as subshell. For example:<br/>
<br/>
user@pc: zenity --question --title="title" --ok-label="Yes" --cancel-label="No" --text="Text"</div>
<div># Click Yes</div>
<div>user@pc: echo $?</div>
<div>0</div>
<div>
<div> </div>
<div>user@pc: zenity --question --title="title" --ok-label="Yes" --cancel-label="No" --text="Text"</div>
<div># Click No</div>
<div>user@pc: echo $?</div>
<div>1</div>
<div> </div>
<div>### However ###</div>
<div> </div>
<div>
<div>user@pc: aa=$(zenity --question --title="title" --ok-label="Yes" --cancel-label="No" --text="Text")</div>
<div># Click Yes</div>
<div>user@pc: echo $aa</div>
<div># Returns \n\n</div>
<div>
<div> </div>
<div>user@pc: aa=$(zenity --question --title="title" --ok-label="Yes" --cancel-label="No" --text="Text")</div>
<div># Click No</div>
<div>user@pc: echo $aa</div>
<div># Returns \n\n</div>
<div> </div>
<div>### Finally ###</div>
<div> user@pc: zenity --question --title="title" --ok-label="Yes" --cancel-label="NO" --text="Delete $1"; echo "$?"</div>
<div># Click Yes</div>
<div>0</div>
<div> </div>
<div>user@pc: zenity --question --title="title" --ok-label="Yes" --cancel-label="NO" --text="Delete $1"; echo "$?"</div>
<div># Click No</div>
<div>1</div>
<div> </div>
<div>user@pc: zenity --question --title="title" --ok-label="Yes" --cancel-label="NO" --text="Delete $1" && echo "$?"</div>
<div># Click Yes</div>
<div># Returns \n</div>
<div> </div>
<div>user@pc zenity --question --title="title" --ok-label="Yes" --cancel-label="NO" --text="Delete $1" && echo "$?"</div>
<div># Click No</div>
<div>0</div>
<div> </div>
</div>
<div>### Conclusion ###</div>
<div> </div>
<div>Zenity does not output a return value reliably for scripting.</div>
<div>However, knowing this, it is easy to script around it without further conflict.</div>
<div> </div>
<div>Possibly closed and moved to Wishlist: Please make Zenity more consistent?</div>
<div> </div>
<div>J</div>
<div> </div>
</div>
</div></div></body></html>