aboutsummaryrefslogtreecommitdiff
path: root/samples/fselect1
diff options
context:
space:
mode:
Diffstat (limited to 'samples/fselect1')
-rwxr-xr-xsamples/fselect18
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/fselect1 b/samples/fselect1
index 591379417176..4b312673c497 100755
--- a/samples/fselect1
+++ b/samples/fselect1
@@ -1,20 +1,20 @@
#!/bin/sh
-# $Id: fselect1,v 1.9 2010/01/13 10:20:03 tom Exp $
+# $Id: fselect1,v 1.12 2020/11/26 00:09:12 tom Exp $
. ./setup-vars
FILE=$HOME
for n in .cshrc .profile .bashrc
do
- if test -f $HOME/$n ; then
+ if test -f "$HOME/$n" ; then
FILE=$HOME/$n
break
fi
done
exec 3>&1
-RESULT=`$DIALOG --title "Please choose a file" "$@" --fselect $FILE 14 48 2>&1 1>&3`
-retval=$?
+returntext=`$DIALOG --title "Please choose a file" "$@" --fselect "$FILE" 14 48 2>&1 1>&3`
+returncode=$?
exec 3>&-
. ./report-string