aboutsummaryrefslogtreecommitdiff
path: root/samples/textbox-both
diff options
context:
space:
mode:
Diffstat (limited to 'samples/textbox-both')
-rwxr-xr-xsamples/textbox-both8
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/textbox-both b/samples/textbox-both
index 787515312037..d84faf9e4977 100755
--- a/samples/textbox-both
+++ b/samples/textbox-both
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: textbox-both,v 1.1 2011/01/18 09:59:47 tom Exp $
+# $Id: textbox-both,v 1.3 2020/11/26 00:05:11 tom Exp $
. ./setup-vars
@@ -8,14 +8,14 @@
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" \
--help-button \
--extra-button "$@" \
--textbox "$tempfile" 22 77
-retval=$?
+returncode=$?
. ./report-button