1251843Sbapt#!/bin/sh 2251843Sbapt# $Id: report-string,v 1.3 2012/06/29 09:32:17 tom Exp $ 3217309Snwhitehorn# Report result passed in a string $RESULT 4217309Snwhitehorn# vile:shmode 5217309Snwhitehorn 6217309Snwhitehorncase $retval in 7217309Snwhitehorn $DIALOG_OK) 8217309Snwhitehorn echo "Result is $RESULT";; 9217309Snwhitehorn $DIALOG_CANCEL) 10217309Snwhitehorn echo "Cancel pressed.";; 11217309Snwhitehorn $DIALOG_HELP) 12217309Snwhitehorn echo "Help pressed ($RESULT).";; 13217309Snwhitehorn $DIALOG_EXTRA) 14217309Snwhitehorn echo "Extra button pressed.";; 15217309Snwhitehorn $DIALOG_ITEM_HELP) 16217309Snwhitehorn echo "Item-help button pressed.";; 17217309Snwhitehorn $DIALOG_ESC) 18217309Snwhitehorn if test -n "$RESULT" ; then 19217309Snwhitehorn echo "$RESULT" 20217309Snwhitehorn else 21217309Snwhitehorn echo "ESC pressed." 22217309Snwhitehorn fi 23217309Snwhitehorn ;; 24217309Snwhitehornesac 25