Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Test release (was re zgetopt)



On 28/04/2025 09:28 BST Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> I've seen no problems, but I'm on bog standard Linux distributions, so
> not adding much.

A couple of issues on Ubuntu 22.04.

The first is a test failure:

./A04redirect.ztst: starting.
--- /tmp/zsh.ztst.2714248/ztst.err      2025-04-30 14:40:05.635669244 +0100
+++ /tmp/zsh.ztst.2714248/ztst.terr     2025-04-30 14:40:05.637669252 +0100
@@ -1 +1 @@
-zsh:1: no such file or directory: /nonexistent/nonexistent
+zsh:1: permission denied: /nonexistent/nonexistent
Test ./A04redirect.ztst failed: error output differs from expected as shown above for:
  $ZTST_testdir/../Src/zsh -fc 'exec >/nonexistent/nonexistent
  echo output'
Was testing: failed exec redir, no POSIX_BUILTINS
./A04redirect.ztst: test failed.

That doesn't seem unreasonable behaviour for system directories to me
--- a ./ prefix seems to fix it up.

The second is probably not system specific, but on this machine I was
using an old configure front-end that turned on --enable-zsh-mem and
some associated flags and that caused the resulting shell to hang.  I
haven't investigated as we don't really support that any more and I
don't suppose people are generally using it.  However, we probably at
the least ought to announce that it's deprecated --- I don't think we've
done that so far, despite fear, uncerainty and doubt on zsh-workers, as
there appears to be no sign in either INSTALL or the configure script.
I could suggest some changes for that.

cheers
pws

diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index dc62efa..aa4b745 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




Messages sorted by: Reverse Date, Date, Thread, Author