diff options
Diffstat (limited to 'samples/fselect1-stdout')
| -rwxr-xr-x | samples/fselect1-stdout | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/fselect1-stdout b/samples/fselect1-stdout index 01d1135622f7..b1406837ffee 100755 --- a/samples/fselect1-stdout +++ b/samples/fselect1-stdout @@ -1,18 +1,18 @@ #!/bin/sh -# $Id: fselect1-stdout,v 1.6 2010/01/13 10:20:03 tom Exp $ +# $Id: fselect1-stdout,v 1.9 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 -RESULT=`$DIALOG --stdout --title "Please choose a file" "$@" --fselect $FILE 14 48` -retval=$? +returntext=`$DIALOG --stdout --title "Please choose a file" "$@" --fselect "$FILE" 14 48` +returncode=$? . ./report-string |
