cygpath 1.7.18 problem. cypath returns mangled filename

John Daintree johnd@dyalog.com
Wed Jun 26 09:19:00 GMT 2013


Hi,

I’ve hit a problem with cygpath. Here’s a script:

JD0=/cygdrive/d/obj/13.2.tmp/apl/win/32/unicode/winapi/dev/opt
JD=/cygdrive/c/src/13.2.dss/svn/misc/samples/tmp

cygpath --version

echo ......
echo $(cygpath -up "$JD0:$JD:$JD:$JD")
echo ......
echo $(cygpath -up "$JD0:$JD:$JD:$JD:$JD:$JD")
echo ......


Here’s its output :

cygpath (cygwin) 1.7.18
Path Conversion Utility
Copyright (C) 1998 - 2013 Red Hat, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
......
/cygdrive/d/obj/13.2.tmp/apl/win/32/unicode/winapi/dev/opt:/cygdrive/c/src/1
3.2.dss/svn/misc/samples/tmp:/cygdrive/c/src/13.2.dss/svn/misc/samples/tmp:/
cygdrive/c/src/13.2.dss/svn/misc/samples/tmp
......
/cygdrive/c/ygdrive/d/obj/13.2.tmp/apl/win/32/unicode/winapi/dev/opt:/cygdri
ve/c/src/13.2.dss/svn/misc/samples/tmp:/cygdrive/c/src/13.2.dss/svn/misc/sam
ples/tmp:/cygdrive/c/src/13.2.dss/svn/misc/samples/tmp:/cygdrive/c/src/13.2.
dss/svn/misc/samples/tmp:/cygdrive/c/src/13.2.dss/svn/misc/samples/tmp
......
Note that the second call to cygpath has “mangled” the first element of the
returned path. The only difference between that 1st and 2nd calls to cygpath
is the length of the argument.
Note that changing  the separator from : to \; doesn’t help – it still
mangles the return.

Chgcheck output is attached.

Thanks,
John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 38980 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130626/392a899e/attachment.obj>
-------------- 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