aboutsummaryrefslogtreecommitdiff
path: root/samples/form5
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-02-26 09:05:35 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-02-26 09:05:35 +0000
commit01b7bcd408fd9e9dc9088b1df5761fcc0971d7e1 (patch)
tree593f2e62b1846058a020ffcecb0ef93eb7ac2153 /samples/form5
parent4dccdce4191d6e2bc3ba9f782b0fe1aa46b743e3 (diff)
Diffstat (limited to 'samples/form5')
-rwxr-xr-xsamples/form58
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/form5 b/samples/form5
index 649c3872d12b..253434110b5e 100755
--- a/samples/form5
+++ b/samples/form5
@@ -1,5 +1,5 @@
#! /bin/sh
-# $Id: form5,v 1.6 2010/01/13 10:49:52 tom Exp $
+# $Id: form5,v 1.9 2020/11/26 00:32:17 tom Exp $
# form4 with --help-status
. ./setup-vars
@@ -17,7 +17,7 @@ returncode=0
while test $returncode != 1 && test $returncode != 250
do
exec 3>&1
-value=`$DIALOG --ok-label "Submit" \
+returntext=`$DIALOG --ok-label "Submit" \
--help-status \
--help-button \
--item-help \
@@ -32,7 +32,7 @@ value=`$DIALOG --ok-label "Submit" \
returncode=$?
exec 3>&-
-show=`echo "$value" |sed -e 's/^/ /'`
+show=`echo "$returntext" |sed -e 's/^/ /'`
case $returncode in
$DIALOG_CANCEL)
@@ -64,7 +64,7 @@ $show" 10 40
$show" 10 40
;;
*)
- echo "Return code was $returncode"
+ . ./report-button
exit
;;
esac