bug in path traversing in 1.5.19 snapshots
Krzysztof Duleba
krzysan@skrzynka.pl
Mon Dec 26 02:24:00 GMT 2005
Rick Rankin wrote:
>>There is a funny bug in the 1.5.19 family, maybe in earlier versions too.
>>
>>Krzysiek@duli5 ~
>>$ cd /usr/.../var
>>
>>Krzysiek@duli5 /usr/.../var
>>$ ls
>>ls: .: No such file or directory
>
> FYI, This same behavior is exhibited in the stock 1.5.18-1 release as well, so this isn't a regression.
It seems you're right, it isn't a regression, but it's still a bug.
cd /usr/..../var (with four dots) works the same way.
You can easily nest those:
$ pwd
/bin/.../bin/.../bin/.../bin/.../bin/.../bin/.../usr/.../usr/.../usr/.../usr/...
/var/.../usr/local/bin/.../src/.../src/.../src/.../src/.../src/.../src/.../src/.
../src/.../src/.../src/.../src/.../src/.../src/.../src/.../src/.../src/.../src/.
../src
$ cd .../src
bash: cd: .../src: File name too long
$ ls
ls: .: No such file or directory
Funny that if I start a windows shell now, it will have the right working
directory (/usr/local/src in this case).
Krzysztof Duleba
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list