This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: cygpath -w 'a"b'
- From: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 14 Jul 2016 18:22:29 +0000
- Subject: RE: cygpath -w 'a"b'
- Authentication-results: sourceware.org; auth=none
- References: <20160714172234.GB19533@calimero.vinschen.de>
It seems that the length of the string passed to cygpath -w
affects whether double quotes are translated or not:
$ cygpath -w '"12345"' | od -cAn
" 1 2 3 4 5 " \n
$ cygpath -w '"123456"' | od -cAn
" 1 2 3 4 5 6 357 200 242 \n
$ cygpath --version
cygpath (cygwin) 2.5.2
Path Conversion Utility
Copyright (C) 1998 - 2016 Cygwin Authors
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ uname -srv
CYGWIN_NT-6.1 2.5.2(0.297/5/3) 2016-06-23 14:29
$
--Ken Nellis