This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "cygpath -u" inside backticks differs


On 06/03/2014 07:28 PM, Ivan Dobrianov wrote:
> It may be something very simple, but I just cannot figure what it is, nor can I
> find anything on the forums.

echo 'a\b\\c\\\d\\\\e'
echo `echo 'a\b\\c\\\d\\\\e'`
echo $(echo 'a\b\\c\\\d\\\\e')

see why `` is obsolete, and you should be using $()?  Among other
reasons, \ inside `` has weird rules.

> PS: I am running a fairly recent version of cygwin 1.7.27 ... and I just checked
> it in 1.7.29

Your problem has nothing to do with cygpath, and everything to do with
shell quoting rules.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]