Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[BUG] 'cd -P' leaves double slash in $PWD



$ zsh -c 'cd -P ////dev//; echo $PWD'
//dev

Expected output: /dev

A double initial slash in a canonicalised/normalised path is okay if the original started with a double slash (as this could signify a Cygwin UNC network path), but not if it started with one or more than two slashes.

Bug confirmed on zsh from current back to 5.0.8 (I didn't test earlier versions).

--
modernish -- harness the shell
https://github.com/modernish/modernish



Messages sorted by: Reverse Date, Date, Thread, Author