automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tests/README: fix the recommended way to run scripts with Zsh


From: Stefano Lattarini
Subject: tests/README: fix the recommended way to run scripts with Zsh
Date: Sun, 4 Oct 2009 15:37:40 +0200
User-agent: KMail/1.12.0 (Linux/2.6.26-1-686; KDE/4.3.0; i686; ; )

Hello automakers.

I recently discovered that the recommended way to run the automake's
test scripts with Zsh, as described in the `tests/README' file (and 
introduced by a patch of myself!), does not work with Zsh version 3.x.

This is because Zsh3 does not recognize the `--no-function-argzero'
option:
 $ zsh4 --no-function-argzero -c 'setopt | grep functionargzero'
 nofunctionargzero
 $ zsh3 --no-function-argzero -c 'setopt | grep functionargzero'
 -c: can't open input file: -c

Luckily, there is an absolutely equivalent way to run Zsh with the
NO_FUNCTION_ARGZERO option on from the beginning, which works for
both Zsh3 and Zsh4:
 $ zsh4 -o no_function_argzero -c 'setopt | grep functionargzero'
 nofunctionargzero
 $ zsh3 -o no_function_argzero -c 'setopt | grep functionargzero'
 nofunctionargzero

The fix to tests/README is very easy (just one line is changed),
and is done in the attached patch.

Regards,
    Stefano

Attachment: 0001-Fix-recommended-way-to-run-test-scripts-with-Zsh.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]