Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: realpath(3), symlinks, '..' components, and the ':A' word modifier
- X-seq: zsh-users 21742
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: realpath(3), symlinks, '..' components, and the ':A' word modifier
- Date: Thu, 7 Jul 2016 10:20:31 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=pB/DYlPyRLxAmz+QmkBUYgxi+vSYM7pWyI30xPMVEHA=; b=ei7NqPscGUmhNwSFqjZfHcDK3ci/4krMDo+SWt1yy5kbKRpmKznJQ9ks14Mdo1oMXf ItmO3ViWpbKS3RneuCqRzu6+Yh/GWobjBEzQRsXVi7qGtOW94z+ltDnZzcdn7iujduhy UeoEWfEAWbeTm+FO0aC766+yXduq53sFWS5EB45ZQN/ztvFe0s3P32MFY0AzFREmqJEg R/oDGaRYpejXKYnUVeDVhcOaLaXjGKxe3WxIz2d0GrxE4eGTjT/YoOmJHoUVuDBTe9Bu ppWxUW3oCviesI6JqPrRur+xwyTCTFeJ65xj8754czNzaC2hJelpMs80GIl5GCfjzT39 oDFg==
- In-reply-to: <20160707020022.GA6364@tarsus.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20160705045756.GC11492@tarsus.local2> <20160705125430.GA29959__3886.85245202414$1467723835$gmane$org@mobil.systemanalysen.net> <20160707020022.GA6364@tarsus.local2>
On Jul 7, 2:00am, Daniel Shahaf wrote:
}
} To everyone who asked about compatibility: under the existing semantics
} of :A, "$foo" and "$foo:A" might denote different files.
But that implies that "$foo" and "$foo:a" might also denote different
files, so why is *that* a useful transformation?
} So, bottom line... it seems the consensus on both lists is not to risk
} breaking compatibility here, and to add another :x modifier letter
} instead (as suggested by Roland here and by pws/Bart in workers/38798 et
} seq).
There's no letter to use that won't in some way be confuse-able with a
parameter expansion flag, so here are some ideas:
:L - mnemonic "link" - corresponds to "ls -L"
:R - mnemonic "real" - think of realpath()
:P - mnemonic "path" - the other half of realpath(), and also in a
certain way comparable to the (P) parameter
flag in that it interprets the path name as
a further path name and yields the file at
the other path
Messages sorted by:
Reverse Date,
Date,
Thread,
Author