Incorrect output from cygpath --path --unix for long path
Kevin Braun
kbraun@obj-sys.com
Fri Mar 2 22:22:00 GMT 2012
Hi,
If I run this command:
cygpath --path --unix
"/cygdrive/c/fop-1.0/lib/xmlgraphics-commons-1.4.jar;/cygdrive/c/fop-1.0/lib/xml-apis-ext-1.3.04.jar;/cygdrive/c/fop-1.0/lib/xml-apis-1.3.04.jar;/cygdrive/c/fop-1.0/lib/xercesImpl-2.7.1.jar;/cygdrive/c/fop-1.0/lib/xalan-2.7.0.jar;/cygdrive/c/tellmeiamtoolongah"
I get the following output (current working directory is /cygdrive/e;
pay particular attention to the first 13 characters):
/cygdrive/e/ygdrive/c/fop-1.0/lib/xmlgraphics-commons-1.4.jar:/cygdrive/c/fop-1.0/lib/xml-apis-ext-1.3.04.jar:/cygdrive/c/fop-1.0/lib/xml-apis-1.3.04.jar:/cygdrive/c/fop-1.0/lib/xercesImpl-2.7.1.jar:/cygdrive/c/fop-1.0/lib/xalan-2.7.0.jar:/cygdrive/c/tellmeiamtoolongah
Interestingly, running the same from /cygdrive/c gives the following
(the second e has become a c):
/cygdrive/c/ygdrive/c/fop-1.0/lib/xmlgraphics-commons-1.4.jar:/cygdrive/c/fop-1.0/lib/xml-apis-ext-1.3.04.jar:/cygdrive/c/fop-1.0/lib/xml-apis-1.3.04.jar:/cygdrive/c/fop-1.0/lib/xercesImpl-2.7.1.jar:/cygdrive/c/fop-1.0/lib/xalan-2.7.0.jar:/cygdrive/c/tellmeiamtoolongah
Drop one character off the end of the input (remove the final h) and the
output is what is expected.
I saw a very old report (2002) of something somewhat similar, but the
corruption was at the end of the output. I also saw a complaint about
getting an error message "File or path name too long", but I am not
getting any error message. As far as I can tell, this is not a known
issue nor expected behavior.
Regards,
Kevin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120302/838cb8b6/attachment.ksh>
-------------- next part --------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list