the "infobox" widget (?) in Xdialog (versions 2.1.1 and 2.1.2) does not work correctly. when given a timeout, it always returns an exit code of 0. if the timeout expires it should return 255. this makes it impossible to tell whether a button was pressed or if the timeout expired before a button was pressed. Reproducible: Always Steps to Reproduce: 1. copy the following code (taken from the xdialog website) into "test.sh": #!/bin/bash Xdialog --title "INFO BOX" --infobox "Hi, this is an information box.\n\ It is different from a message box in that it will not pause waiting\n\ for input after displaying the message. You have 20 seconds to read this..." 13 45 20000 case $? in 0) echo "OK";; 255) echo "Box closed.";; esac exit 0 2. run the code using "sh test.sh" 3. wait 20 seconds Actual Results: it printed "OK". Expected Results: it should have printed "Box closed." gentoo universal 2004.3 (up to date), Xdialog 2.1.1
this doesn't seem to be unique to gentoo i've emailed the author with a link to this bug
oh, i know this has nothing to do with your bug, but i version bumped, so that now 2.1.2 is ~arch'd in portage