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
From 5800a441ba51fb03efb51bc2cdcbcae506db09fa Mon Sep 17 00:00:00 2001 From: Stefano Lattarini <stefano.lattar...@gmail.com> Date: Sun, 4 Oct 2009 15:27:49 +0200 Subject: [PATCH] Fix recommended way to run test scripts with Zsh * tests/README (Supported shells): Changed the recommended way to run automake's test scripts with Zsh. Now we tell to use the Zsh's command line option `-o no_function_argzero', not `--no-function-argzero', since the latter does not work with versions 3.x of Zsh. --- ChangeLog | 9 +++++++++ tests/README | 2 +- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index c76e559..42a501c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-10-01 Stefano Lattarini <stefano.lattar...@gmail.com> (tiny change) + + Fix recommended way to run automake's test scripts with Zsh. + * tests/README (Supported shells): Changed the recommended way + to run automake's test scripts with Zsh. Now we tell to use + the Zsh's command line option `-o no_function_argzero', not + `--no-function-argzero', since the latter does not work with + versions 3.x of Zsh. + 2009-09-25 Ralf Wildenhues <ralf.wildenh...@gmx.de> Use silent-rules for building the Automake package. diff --git a/tests/README b/tests/README index b264881..4068ad6 100644 --- a/tests/README +++ b/tests/README @@ -57,7 +57,7 @@ Supported shells no easy workaround. Thus, if you want to run a test script, say foo.test, with Zsh, you *can't* simply do `zsh foo.test', but you *must* resort to: - zsh --no-function-argzero foo.test + zsh -o no_function_argzero foo.test Note that this problem does not occur if zsh is executed through a symlink with a basename of `sh', since in that case it starts -- 1.6.3.3