* doc/autoconf.texi (Limitations of Builtins): Mention bug on
empty list.
Signed-off-by: Eric Blake <ebb9@byu.net>
2008-10-18 Eric Blake <ebb9@byu.net>
+ Document bugs in { } handling.
+ * doc/autoconf.texi (Limitations of Builtins): Mention bug on
+ empty list.
+
Fix some testsuite failures introduced two days ago.
* tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
(AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
1
@end example
+Posix requires a syntax error if a brace list has no contents. However,
+not all shells obey this rule; and on shells where empty lists are
+permitted, the effect on @samp{$?} is inconsistent. To avoid problems,
+ensure that a brace list is never empty.
+
+@example
+$ @kbd{bash -c 'false; @{ @}; echo $?' || echo $?}
+bash: line 1: syntax error near unexpected token `@}'
+bash: line 1: `false; @{ @}; echo $?'
+2
+$ @kbd{zsh -c 'false; @{ @}; echo $?' || echo $?}
+1
+$ @kbd{pdksh -c 'false; @{ @}; echo $?' || echo $?}
+0
+@end example
+
@item @command{break}
@c ------------------