"cygpath -u" inside backticks differs
Eric Blake
eblake@redhat.com
Wed Jun 4 01:58:00 GMT 2014
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140604/422e6fc9/attachment.sig>
More information about the Cygwin
mailing list