Tell HN: cd // Is Special
Yep. That is all. I just discovered this. Almost a 20 year bash user. A typo today led me down this somewhat short rabbit hole:
[...]@MacBook-Air:~$ cd //
[...]@MacBook-Air://$ pwd
//
[...]@MacBook-Air://$ cd /
[...]@MacBook-Air:/$ cd //
[...]@MacBook-Air://$ cd ///
[...]@MacBook-Air:/$ cd ////
[...]@MacBook-Air:/$ cd //
[...]@MacBook-Air://$
I checked on a Debian box and same thing. Both cases bash is ~ v5.2 but I guess this is a long time thing. Who woulda thought?I kinda like the double slash. Very internet-y. I wonder if that's related to why TBL included (apparently later regretting) the '//' in URLs?