autoconf-patches
[Top][All Lists]
Advanced

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

Re: [PATCH 2/5] docs: mention cost of globbing during variable expansion


From: Gary V. Vaughan
Subject: Re: [PATCH 2/5] docs: mention cost of globbing during variable expansion
Date: Thu, 26 Aug 2010 22:43:53 +0700

Hi Eric,

On 26 Aug 2010, at 20:45, Eric Blake wrote:
> Not true, if $TMPDIR already has a value that contains globbing characters 
> (of course, the likelihood of this is slim, but the whole point of ${a=b} is 
> that you are assigning a value to $a _if_ it doesn't already have one, which 
> implies that you are also admitting that $a may already have an unspecified 
> value inherited from the user - and we know that it is never a good idea to 
> blindly trust user input to be sane.

Ah-hah! The penny has dropped... now I see why the outer quotes are worthwhile. 
 Thanks for the explanation.

If you didn't do it already (I didn't go over the follow-up patches as 
carefully, so I might have missed it), I think some version of the above added 
to the Autoconf manual would make it easier for others to understand what the 
difference is, and internalise the advantages of using outer quotes when 
possible.

Cheers,
-- 
Gary V. Vaughan (address@hidden)

Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

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