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: Eric Blake
Subject: Re: [PATCH 2/5] docs: mention cost of globbing during variable expansion
Date: Wed, 25 Aug 2010 21:17:42 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

On 08/25/2010 05:18 PM, Eric Blake wrote:
* doc/autoconf.texi (Shell Substitutions)<${var=literal}>:
Recommend quoting substitutions that might trigger globbing.

Not quite right.  :(

  AT_SETUP([autom4te preselections])
-: ${sleep='sleep 1'}   # Command to force different time stamps.
+: "${sleep='sleep 1'}"       # Command to force different time stamps.

This fails miserably. The moment you add "" on the outside, the '' on the inside no longer operate as quotes, but become part of the variable assignment.

And I should have remembered that this was just recently brought up in the Austin Group: http://austingroupbugs.net/view.php?id=221, http://austingroupbugs.net/view.php?id=255.

I'm working on a patch to better document the intricacies of quoting mixed with substitutions, and will fix this regression in the process.

:(

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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