libtool-patches
[Top][All Lists]
Advanced

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

Re: [patch] allow --with-pic to accept package names


From: Eric Blake
Subject: Re: [patch] allow --with-pic to accept package names
Date: Fri, 22 Oct 2010 15:11:38 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

On 10/22/2010 03:02 PM, Peter Rosin wrote:
There is never any need to quote the right-hand side of assignments,
unless you have literal whitespace in them.  If you do
   a=foo; b="  bar"; c=$a$b; d=$c
both $c and $d will be "foo  bar".

See 'Shell Substitutions' in the 'Portable Shell' chapter in the
autoconf manual.

In fact, there's sometimes a requirement that you must NOT quote the right-hand side of assignments if you care about portability to buggy shells:

a="`echo "b  c"`"

is non-portable, but

a=`echo "b  c"`

reliably assigns "b  c" to $a in all shells.

I just stated tangential info since the problematic
quoting needed fixing, and since that is fixed I don't see any need
to do a re-spin just because of this.

Agreed.

--
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]