summaryrefslogtreecommitdiff
path: root/tests/misc/test-minus-e.2
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/test-minus-e.2')
-rw-r--r--tests/misc/test-minus-e.211
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/misc/test-minus-e.2 b/tests/misc/test-minus-e.2
new file mode 100644
index 0000000..f66966e
--- /dev/null
+++ b/tests/misc/test-minus-e.2
@@ -0,0 +1,11 @@
+touch .file
+set -e
+while set +e ; test -r .file ; do
+ echo -n "stop loop? [yes to quit] "
+ read reply
+ if [ "$reply" = yes ] ; then
+ rm .file non-dash-file
+ fi
+ set -e
+done
+rm -f .file