[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tests: work around zsh use of $options variable.
From: |
Ralf Wildenhues |
Subject: |
tests: work around zsh use of $options variable. |
Date: |
Sun, 12 Sep 2010 16:50:06 +0200 |
User-agent: |
Mutt/1.5.20 (2010-08-04) |
../../libtool/tests/getopt-m4sh.at:93: $SHELL ./options -fvi
+ /usr/local/bin/zsh ./options -fvi
--- /dev/null 2010-09-12 14:28:42.575801479 +0000
+++ /tmp/build/tests/testsuite.dir/at-groups/1/stderr 2010-09-12
14:28:42.634930285 +0000
@@ -0,0 +1,2 @@
+./options:950: options: attempt to set associative array to scalar
+./options:981: options: attempt to set associative array to scalar
--- expout 2010-09-12 14:28:41.558461981 +0000
+++ /tmp/build/tests/testsuite.dir/at-groups/1/stdout 2010-09-12
14:28:42.560506110 +0000
@@ -1 +0,0 @@
- force verbose install
../../libtool/tests/getopt-m4sh.at:93: exit code was 1, expected 0
1. getopt-m4sh.at:85: FAILED (getopt-m4sh.at:93)
Fixed as below, fixing test failures 1-6. There are still failures of
9, 10, and 19 with this shell, but I haven't analyzed them yet.
I still need to write a patch for autoconf.texi, but for that I'd like
a confirmation from the man page. Try finding something related to
"\<options\>" quickly ... :-/
Cheers,
Ralf
tests: work around zsh use of $options variable.
* tests/getopt-m4sh.at: Rename $options to $opts, the former is
special for zsh 4.3.10.
diff --git a/tests/getopt-m4sh.at b/tests/getopt-m4sh.at
index 1c2ac26..75a7bf6 100644
--- a/tests/getopt-m4sh.at
+++ b/tests/getopt-m4sh.at
@@ -37,14 +37,14 @@ AT_DATA([options.m4sh],
nl='
'
list=
-options=
+opts=
M4SH_GETOPTS(
[a!], [--append], [], [func_append list "$optarg$nl"],
- [f], [--force], [], [options="$options force"],
- [i], [--install], [], [options="$options install"],
- [v], [--verbose], [], [options="$options verbose"],
- [!], [--ltdl], [false],[options="$options ltdl=$optarg"],
-[echo "$list" $options])
+ [f], [--force], [], [opts="$opts force"],
+ [i], [--install], [], [opts="$opts install"],
+ [v], [--verbose], [], [opts="$opts verbose"],
+ [!], [--ltdl], [false],[opts="$opts ltdl=$optarg"],
+[echo "$list" $opts])
]])
m4_pattern_forbid([m4_include])
m4_pattern_forbid([AS_INIT])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- tests: work around zsh use of $options variable.,
Ralf Wildenhues <=