PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/dialog/samples/report-edit

https://bitbucket.org/freebsd/freebsd-head/
#! | 22 lines | 21 code | 1 blank | 0 comment | 0 complexity | b7872933e2bd2033997b7986570287bf MD5 | raw file
 1# $Id: report-edit,v 1.3 2010/01/13 09:59:43 tom Exp $
 2# Report results from editing.
 3# vile:shmode
 4
 5case $retval in
 6  $DIALOG_OK)
 7    diff -c $input $output
 8    echo "OK"
 9    ;;
10  $DIALOG_CANCEL)
11    echo "Cancel pressed";;
12  $DIALOG_HELP)
13    echo "Help pressed";;
14  $DIALOG_EXTRA)
15    echo "Extra pressed";;
16  $DIALOG_ITEM_HELP)
17    echo "Item-help button pressed.";;
18  $DIALOG_ERROR)
19    echo "ERROR!";;
20  $DIALOG_ESC)
21    echo "ESC pressed.";;
22esac