Re: bash bug in $()

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

 



Thanks for reporting that.  I installed this patch.

2005-12-29  Paul Eggert  <eggert@xxxxxxxxxxx>

	* 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:
+
+@example
+echo $(case x in x) echo hello;; esac)
+@end example
+
 @end table
 
 


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux