aboutsummaryrefslogtreecommitdiff
path: root/samples/form3
diff options
context:
space:
mode:
Diffstat (limited to 'samples/form3')
-rwxr-xr-xsamples/form38
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/form3 b/samples/form3
index c3ac6d5306e5..9a6b256b363f 100755
--- a/samples/form3
+++ b/samples/form3
@@ -1,5 +1,5 @@
#! /bin/sh
-# $Id: form3,v 1.6 2010/01/13 10:49:52 tom Exp $
+# $Id: form3,v 1.9 2020/11/26 00:32:45 tom Exp $
# form1 with --help-button
. ./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 \
--backtitle "$backtitle" "$@" \
--form "Here is a possible piece of a configuration program." \
@@ -30,7 +30,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)
@@ -62,7 +62,7 @@ $show" 10 40
$show" 10 40
;;
*)
- echo "Return code was $returncode"
+ . ./report-button
exit
;;
esac