Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • That doesn’t happen on Solaris, Darwin, or OpenBSD. Commented Apr 29, 2011 at 3:34
  • @tchrist: This behavior is specific to Bourne shell; you are probably using zsh or the like. Commented Apr 29, 2011 at 13:14
  • 1
    @thchrist: 1) What do you mean by "namei()"? If you are referring to a syscall or library function, then I haven't yet heard of such. There's only a /usr/bin/namei, but it is not related. 2) It is a shell thing, since it only happens with sh and bash, but not with zsh/csh/tcsh, nor with the chdir() syscall. 3) It happens on "the others" - I just tested NetBSD 5.0 and FreeBSD 6.3, and cd //bin shows exactly the same behavior. Commented Apr 29, 2011 at 13:28
  • 4
    I hate to nag, but it's called a ‘slash’. There's the ‘slash’ and the ‘backslash’. The ‘forward slash’ (sic) seems to be a recent construct, and I mostly hear it from people on TV. Commented Feb 21, 2012 at 9:05
  • 1
    Related: unix.stackexchange.com/q/256497/22565 Commented Sep 29, 2016 at 16:31