在zsh中,输入任意数量的斜杠会将我移动到根目录中,但正如我最近注意到的那样,在bash中你可以进入//并且它实际上显示//而不是/.
之后(///…/)这一切都以/结尾.@H_403_3@
有人可以告诉我这个的区别/意义是什么?@H_403_3@
解决方法
见
Pathname resolution
A pathname consisting of a single slash shall resolve to the root directory of the process. A null pathname shall not be successfully resolved. A pathname that begins with two successive slashes may be interpreted in an implementation-defined manner,although more than two leading slashes shall be treated as a single slash.@H_403_3@