1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00
freebsd/samples/report-edit
2012-10-21 18:18:09 +00:00

24 lines
464 B
Bash

#!/bin/sh
# $Id: report-edit,v 1.4 2012/06/29 09:29:41 tom Exp $
# Report results from editing.
# vile:shmode
case $retval in
$DIALOG_OK)
diff -c $input $output
echo "OK"
;;
$DIALOG_CANCEL)
echo "Cancel pressed";;
$DIALOG_HELP)
echo "Help pressed";;
$DIALOG_EXTRA)
echo "Extra pressed";;
$DIALOG_ITEM_HELP)
echo "Item-help button pressed.";;
$DIALOG_ERROR)
echo "ERROR!";;
$DIALOG_ESC)
echo "ESC pressed.";;
esac