change dir to //

Michał Piotrowski mkkp4x4 at gmail.com
Sun Jan 16 23:45:26 UTC 2011


2011/1/17 Andre Robatino <robatino at fedoraproject.org>:
> Andre Robatino <robatino <at> fedoraproject.org> writes:
>
>> Good question - a directory listing shows it's in /, as expected, but $PWD is
>> wrong, and only when there are exactly 2 /'s. The same thing happens in F13,
>> F14, and Rawhide. It only happens in sh/bash, and not in csh/tcsh, ksh, or zsh.
>
> More generally, it happens for anything like "//usr/bin" as well - you end up in
> the expected directory, but "echo $PWD" shows the double slash.

Actually I'm testing things like

while [ true ]; do
  ls ///////////////////////////////////////////////////(1400 /)
done

it works, but when I try

while [ true ]; do
  ls ///////////////////////////////////////////////////(5400 /)
done

I get "too long file name" warning.

Also works for ~/// and ///dir1///dir2

>
>
>
>
> --
> test mailing list
> test at lists.fedoraproject.org
> To unsubscribe:
> https://admin.fedoraproject.org/mailman/listinfo/test
>



-- 
Best regards,
Michal

http://eventhorizon.pl/


More information about the test mailing list