aboutsummaryrefslogtreecommitdiff
path: root/samples/textbox3
diff options
context:
space:
mode:
Diffstat (limited to 'samples/textbox3')
-rwxr-xr-xsamples/textbox38
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/textbox3 b/samples/textbox3
index 2c076e955563..f3d6f8249849 100755
--- a/samples/textbox3
+++ b/samples/textbox3
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: textbox3,v 1.6 2010/01/13 10:37:01 tom Exp $
+# $Id: textbox3,v 1.8 2020/11/26 00:05:52 tom Exp $
. ./setup-vars
@@ -8,13 +8,13 @@
TEXT=/usr/share/common-licenses/GPL
test -f $TEXT || TEXT=../COPYING
-cat textbox.txt | expand > $tempfile
-cat $TEXT | expand >> $tempfile
+expand < textbox.txt > $tempfile
+expand < $TEXT >> $tempfile
$DIALOG --clear --title "TEXT BOX" \
--extra-button "$@" \
--textbox "$tempfile" 22 77
-retval=$?
+returncode=$?
. ./report-button