diff options
Diffstat (limited to 'tests/zos/script-errors.sh')
| -rw-r--r-- | tests/zos/script-errors.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/zos/script-errors.sh b/tests/zos/script-errors.sh new file mode 100644 index 0000000..bad40c3 --- /dev/null +++ b/tests/zos/script-errors.sh @@ -0,0 +1,11 @@ +# What a script path that cannot be read does on z/OS: only a missing file is +# an error. The bit mode of a file does not decide access there, so a mode +# 000 script runs; the POSIX case lives in zash/script-errors, which the +# runner skips on this host. +"$TSH" /nonexistent/x >/dev/null 2>&1; echo "missing $?" +"$TSH" /nonexistent/x >/dev/null 2>msg; cat msg +"$TSH" /tmp >/dev/null 2>&1; echo "dir $?" +echo 'echo hi' >unreadable.sh +chmod 000 unreadable.sh +"$TSH" unreadable.sh >/dev/null 2>&1; echo "unreadable $?" +chmod 644 unreadable.sh |
