bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] maint: use a wildcard to include all syntax check exceptions


From: Eric Blake
Subject: Re: [PATCH] maint: use a wildcard to include all syntax check exceptions in dist
Date: Mon, 8 Jun 2009 14:24:04 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Jim Meyering <jim <at> meyering.net> writes:

> Yes, I noticed that it worked, too.
> Note that "`... "..." ...`" is not portable
> (see Shell Substitutions in "info autoconf").
> I'm not sure about "$(... "..." ...)".

"$(... "..." ...)" is portable, insofar as $() is portable.  In other words, 
every shell that manages the new style of command substitution manages this 
particular syntax ("`""`" is tougher because of the rules on when embedded " 
must be escaped, while $() gets rid of those escaping ambiguities).  But 
autoconf still recommends against $(), since Solaris /bin/sh still doesn't grok 
it.
 
> > I'll also change the first '$((' to '$( (' so
> > that readers aren't confused with arithmetic expansion.

Also documented in the Autoconf portability section.

-- 
Eric Blake







reply via email to

[Prev in Thread] Current Thread [Next in Thread]