summaryrefslogtreecommitdiffstats
path: root/tests/misc/test-minus-e.1
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/test-minus-e.1')
-rw-r--r--tests/misc/test-minus-e.19
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/misc/test-minus-e.1 b/tests/misc/test-minus-e.1
new file mode 100644
index 0000000..77cc3f2
--- /dev/null
+++ b/tests/misc/test-minus-e.1
@@ -0,0 +1,9 @@
+touch .file
+while set -e ; test -r .file ; do
+ echo -n "stop loop? "
+ read reply
+ case "$reply" in
+ y*) rm .file non-dash-file ;;
+ esac
+ set +e
+done