aboutsummaryrefslogtreecommitdiff
path: root/samples/textbox-both
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/textbox-both
parent4dccdce4191d6e2bc3ba9f782b0fe1aa46b743e3 (diff)
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