diff options
| author | Peter Stephenson <p.stephenson@samsung.com> | 2025-05-01 09:16:45 +0100 |
|---|---|---|
| committer | Peter Stephenson <p.stephenson@samsung.com> | 2025-05-01 09:16:45 +0100 |
| commit | 7de89c95764f3d3511ebbeaf354f1e83a6b5dbcf (patch) | |
| tree | 3674ae3d530712a12f77807f0e18d8616a40835f /Test | |
| parent | unposted: README: add missed note about <<< redirection (diff) | |
| download | zsh-7de89c95764f3d3511ebbeaf354f1e83a6b5dbcf.tar zsh-7de89c95764f3d3511ebbeaf354f1e83a6b5dbcf.tar.gz zsh-7de89c95764f3d3511ebbeaf354f1e83a6b5dbcf.tar.bz2 zsh-7de89c95764f3d3511ebbeaf354f1e83a6b5dbcf.tar.lz zsh-7de89c95764f3d3511ebbeaf354f1e83a6b5dbcf.tar.xz zsh-7de89c95764f3d3511ebbeaf354f1e83a6b5dbcf.tar.zst zsh-7de89c95764f3d3511ebbeaf354f1e83a6b5dbcf.zip | |
53529: A04redirect fix.
Sometimes permissions in system directories can affect the error for non-existent
files. Use the local directory instead.
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/A04redirect.ztst | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst index dc62efab3..aa4b74562 100644 --- a/Test/A04redirect.ztst +++ b/Test/A04redirect.ztst @@ -462,50 +462,50 @@ >This file contains data. >This file contains data. - $ZTST_testdir/../Src/zsh -fc 'exec >/nonexistent/nonexistent + $ZTST_testdir/../Src/zsh -fc 'exec >./nonexistent/nonexistent echo output' 0:failed exec redir, no POSIX_BUILTINS >output -?zsh:1: no such file or directory: /nonexistent/nonexistent +?zsh:1: no such file or directory: ./nonexistent/nonexistent $ZTST_testdir/../Src/zsh -f -o POSIX_BUILTINS -c ' - exec >/nonexistent/nonexistent + exec >./nonexistent/nonexistent echo output' 1:failed exec redir, POSIX_BUILTINS -?zsh:2: no such file or directory: /nonexistent/nonexistent +?zsh:2: no such file or directory: ./nonexistent/nonexistent $ZTST_testdir/../Src/zsh -f -o POSIX_BUILTINS -c ' - set >/nonexistent/nonexistent + set >./nonexistent/nonexistent echo output' 1:failed special builtin redir, POSIX_BUILTINS -?zsh:2: no such file or directory: /nonexistent/nonexistent +?zsh:2: no such file or directory: ./nonexistent/nonexistent $ZTST_testdir/../Src/zsh -f -o POSIX_BUILTINS -c ' - command set >/nonexistent/nonexistent + command set >./nonexistent/nonexistent echo output' 0:failed special builtin redir with command prefix, POSIX_BUILTINS >output -?zsh:2: no such file or directory: /nonexistent/nonexistent +?zsh:2: no such file or directory: ./nonexistent/nonexistent $ZTST_testdir/../Src/zsh -f -o POSIX_BUILTINS -c ' - echo >/nonexistent/nonexistent + echo >./nonexistent/nonexistent echo output' 0:failed unspecial builtin redir, POSIX_BUILTINS >output -?zsh:2: no such file or directory: /nonexistent/nonexistent +?zsh:2: no such file or directory: ./nonexistent/nonexistent $ZTST_testdir/../Src/zsh -f -o POSIX_BUILTINS -c ' - . /nonexistent/nonexistent + . ./nonexistent/nonexistent echo output' 1:failed dot, POSIX_BUILTINS -?zsh:.:2: no such file or directory: /nonexistent/nonexistent +?zsh:.:2: no such file or directory: ./nonexistent/nonexistent $ZTST_testdir/../Src/zsh -f -c ' - . /nonexistent/nonexistent + . ./nonexistent/nonexistent echo output' 0:failed dot, NO_POSIX_BUILTINS >output -?zsh:.:2: no such file or directory: /nonexistent/nonexistent +?zsh:.:2: no such file or directory: ./nonexistent/nonexistent $ZTST_testdir/../Src/zsh -f -o CONTINUE_ON_ERROR <<<' readonly foo |
