zsh-workers
 help / color / mirror / code / Atom feed
* [BUG] 'cd -P' leaves double slash in $PWD
@ 2020-02-01  2:15 Martijn Dekker
  2020-02-01  4:23 ` Daniel Shahaf
  0 siblings, 1 reply; 2+ messages in thread
From: Martijn Dekker @ 2020-02-01  2:15 UTC (permalink / raw)
  To: Zsh hackers list

$ 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-01  4:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-01  2:15 [BUG] 'cd -P' leaves double slash in $PWD Martijn Dekker
2020-02-01  4:23 ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).