Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug with :P modifier when current directory is the root
- X-seq: zsh-workers 40834
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug with :P modifier when current directory is the root
- Date: Sun, 12 Mar 2017 02:58:59 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1489283941; bh=Cof4S50qmECADkcP8v6bm44PBc3ndzXElInBEp/qFvs=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=tVxc5zcwWhd8ncASdcy7zdCsjbjye+nvaLsWdBPDa3kDDKxGCf6O8RnHamHzAcCEDOIv5zIHkBA3OoPMYPEkz/KvjfTonQKKgDtXZ1Uc+loSeVXEo24PtEgwckVzrWXBaATkVZnPvHi2xSu8dmW/3V2k0jK2nUnDCgRDrmDDAu3BA3VJLk8ldTpZEIhYCHr1D9fwKcnPpNIFgCT8CmsSMMDD6ZBMDRP8Rp1/eTk4z6/nrOB6kfyOeshtov1jCf2+l8Kmom1yilwDsfwlBCGErfaXGS7bi7siQtzO6QGS67BRM063A8uqAo11FHoCnYzmpbxYpFj1SfRrcNLtXg9G6w==
- In-reply-to: <170310182501.ZM17524@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <170310182501.ZM17524@torch.brasslantern.com>
Bart wrote:
> I can't think of any case [*] where the :P modifier should add a double
> leading slash.
>
> [*] Except on weird OSs where you refer to auto-mount points with //host/
> but that's definitely not the case here.
Preserving of two initial slashes is, I think, in the spec and has long
been reserved to allow "weird OSs" to do odd stuff like specifying
remote hosts. That would imply that :P should preserve two slashes while
three or more should be squeezed down to one. See:
https://jvns.ca/blog/2017/02/08/weird-unix-things-cd/
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author