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 ebl...@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org