report-string revision 217309
11027Salanb# $Id: report-string,v 1.2 2010/01/13 10:00:11 tom Exp $ 23261Sohair# Report result passed in a string $RESULT 31027Salanb# vile:shmode 41027Salanb 51027Salanbcase $retval in 61027Salanb $DIALOG_OK) 71027Salanb echo "Result is $RESULT";; 81027Salanb $DIALOG_CANCEL) 91027Salanb echo "Cancel pressed.";; 101027Salanb $DIALOG_HELP) 111027Salanb echo "Help pressed ($RESULT).";; 121027Salanb $DIALOG_EXTRA) 131027Salanb echo "Extra button pressed.";; 141027Salanb $DIALOG_ITEM_HELP) 151027Salanb echo "Item-help button pressed.";; 161027Salanb $DIALOG_ESC) 171027Salanb if test -n "$RESULT" ; then 181027Salanb echo "$RESULT" 192362Sohair else 202362Sohair echo "ESC pressed." 212362Sohair fi 221027Salanb ;; 231027Salanbesac 241027Salanb