cd // - bash is funny???

Maxim Sobolev sobomax at sippysoft.com
Fri Nov 14 15:10:42 PST 2008


[sobomax at sobomac ~]$ cd //
[sobomax at sobomac //]$ pwd
//
[sobomax at sobomac //] /bin/pwd
/
[sobomax at sobomac //]

What's that? Happens on bash 3.x, checked range of boxes from 6.x to 8.x 
and arches from powerpc to amd64. "cd ///" at the same time is OK:

[sobomax at sobomac //]$ cd ///
[sobomax at sobomac /]$

Is it off-by-one error?

-Maxim


More information about the freebsd-ports mailing list