bug-gnulib
[Top][All Lists]
Advanced

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

Re: bug#16843: Error caused due to regression in git


From: Eric Blake
Subject: Re: bug#16843: Error caused due to regression in git
Date: Mon, 24 Feb 2014 07:04:19 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 02/24/2014 07:00 AM, Eric Blake wrote:

> 
> Based on the test that is failing, can you please show the output of:
> 
>   git submodule --quiet foreach echo 'a  b' '"c  d"'
> 
> On my version (1.8.5.3), I get 'a b c  d' (that is, echo saw three
> arguments rather than 2, where only my 'c  d' argument survived because
> it was double-quoted).  I'm guessing your version preserves extra
> quotes, because it is not being passed through a layer of shell
> interpretation?

What about:

  git submodule --quiet foreach 'echo a  b "c  d" "$sha1"'

That is, does presenting the entire command as a single argument to git
still manage to interpolate the shell variable and preserve the double
space between c and d while doing word splitting between a and b?
-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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