[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash bug in $()
From: |
Paul Eggert |
Subject: |
Re: bash bug in $() |
Date: |
Thu, 29 Dec 2005 13:29:44 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Thanks for reporting that. I installed this patch.
2005-12-29 Paul Eggert <address@hidden>
* doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
parentheses in $(...). Problem reported by Eric Blake.
--- doc/autoconf.texi 12 Dec 2005 18:46:51 -0000 1.936
+++ doc/autoconf.texi 29 Dec 2005 21:28:30 -0000 1.937
@@ -10511,6 +10511,15 @@ a different notation @samp{$((@var{expre
shells is an arithmetic expression not a command. To avoid the
confusion, insert a space between the two opening parentheses.
+Avoid @var{commands} that contain unbalanced parentheses in
+here-documents, comments, or case statement patterns, as many shells
+mishandle them. For example, Bash 3.1, @samp{ksh88}, @command{pdksh}
+5.2.14, and Zsh 4.2.6 all mishandle the following valid command:
+
address@hidden
+echo $(case x in x) echo hello;; esac)
address@hidden example
+
@end table