aboutsummaryrefslogtreecommitdiff
path: root/samples/form4
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/form4
parent4dccdce4191d6e2bc3ba9f782b0fe1aa46b743e3 (diff)
Diffstat (limited to 'samples/form4')
-rwxr-xr-xsamples/form48
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/form4 b/samples/form4
index a733865015c6..1e5d5b0e7f3c 100755
--- a/samples/form4
+++ b/samples/form4
@@ -1,5 +1,5 @@
#! /bin/sh
-# $Id: form4,v 1.6 2010/01/13 10:49:52 tom Exp $
+# $Id: form4,v 1.9 2020/11/26 00:32:31 tom Exp $
# form3 with --item-help
. ./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-button \
--item-help \
--backtitle "$backtitle" "$@" \
@@ -31,7 +31,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)
@@ -63,7 +63,7 @@ $show" 10 40
$show" 10 40
;;
*)
- echo "Return code was $returncode"
+ . ./report-button
exit
;;
esac