diff options
Diffstat (limited to 'Build/source/utils/dialog/dialog-1.1-20080819/samples/fselect-stdout')
-rwxr-xr-x | Build/source/utils/dialog/dialog-1.1-20080819/samples/fselect-stdout | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/utils/dialog/dialog-1.1-20080819/samples/fselect-stdout b/Build/source/utils/dialog/dialog-1.1-20080819/samples/fselect-stdout new file mode 100755 index 00000000000..a4fe2449210 --- /dev/null +++ b/Build/source/utils/dialog/dialog-1.1-20080819/samples/fselect-stdout @@ -0,0 +1,14 @@ +#!/bin/sh +# $Id: fselect-stdout,v 1.1 2003/08/15 19:40:37 tom Exp $ +: ${DIALOG=dialog} + +FILE=`$DIALOG --stdout --title "Please choose a file" --fselect $HOME/ 14 48` + +case $? in + 0) + echo "\"$FILE\" chosen";; + 1) + echo "Cancel pressed.";; + 255) + echo "Box closed.";; +esac |