report-string revision 251843
1236324Sraj#!/bin/sh 2236324Sraj# $Id: report-string,v 1.3 2012/06/29 09:32:17 tom Exp $ 3236324Sraj# Report result passed in a string $RESULT 4236324Sraj# vile:shmode 5236324Sraj 6236324Srajcase $retval in 7236324Sraj $DIALOG_OK) 8236324Sraj echo "Result is $RESULT";; 9236324Sraj $DIALOG_CANCEL) 10236324Sraj echo "Cancel pressed.";; 11236324Sraj $DIALOG_HELP) 12236324Sraj echo "Help pressed ($RESULT).";; 13236324Sraj $DIALOG_EXTRA) 14236324Sraj echo "Extra button pressed.";; 15236324Sraj $DIALOG_ITEM_HELP) 16236324Sraj echo "Item-help button pressed.";; 17236324Sraj $DIALOG_ESC) 18236324Sraj if test -n "$RESULT" ; then 19236324Sraj echo "$RESULT" 20236324Sraj else 21236324Sraj echo "ESC pressed." 22236324Sraj fi 23236324Sraj ;; 24236324Srajesac 25236324Sraj