aboutsummaryrefslogtreecommitdiff
path: root/samples/menubox12
diff options
context:
space:
mode:
Diffstat (limited to 'samples/menubox12')
-rwxr-xr-xsamples/menubox1210
1 files changed, 5 insertions, 5 deletions
diff --git a/samples/menubox12 b/samples/menubox12
index ee4b4747dd18..6723c0574425 100755
--- a/samples/menubox12
+++ b/samples/menubox12
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: menubox12,v 1.3 2012/12/23 22:28:26 tom Exp $
+# $Id: menubox12,v 1.6 2020/11/26 00:03:58 tom Exp $
. ./setup-vars
@@ -19,10 +19,10 @@ $CUT >$input <<-EOF
NetBSD:Another free Unix Clone for 386/486
OS/2:IBM OS/2
WIN NT:Microsoft Windows NT
- PCDOS:IBM PC DOS
- MSDOS:Microsoft DOS
+ PC-DOS:IBM PC DOS
+ MS-DOS:Microsoft DOS
EOF
-cat $input | sed -e 's/^/"/' -e 's/:/" "/g' -e 's/$/"/' >$output
+sed -e 's/^/"/' -e 's/:/" "/g' -e 's/$/"/' <$input >$output
cat $output >$input
$DIALOG --clear --title "MENU BOX" "$@" \
@@ -37,7 +37,7 @@ Try it now!\n\n\
Choose the OS you like:" 20 51 4 \
--file $input 2> $output
-retval=$?
+returncode=$?
tempfile=$output
. ./report-tempfile