diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-08-10 05:50:40 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-08-16 13:17:10 +0000 |
commit | cdafe31e05570da92cc96159dbb02a75b48a16b0 (patch) | |
tree | 1959fe4b67ec70f956a9f1d81d542ebc66ad0e08 | |
parent | 8becb893579af0ca41617a15d3afcbea588fe621 (diff) | |
download | zsh-cdafe31e05570da92cc96159dbb02a75b48a16b0.tar.gz zsh-cdafe31e05570da92cc96159dbb02a75b48a16b0.tar.xz zsh-cdafe31e05570da92cc96159dbb02a75b48a16b0.zip |
47313: docs: Document explicitly that the :P modifier returns a symlink-less path.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Doc/Zsh/expn.yo | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index d14b527fc..9c45df0c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-08-16 Daniel Shahaf <d.s@daniel.shahaf.name> + + * 47313: Doc/Zsh/expn.yo: docs: Document explicitly that the + :P modifier returns a symlink-less path. + 2020-08-13 Oliver Kiddle <opk@zsh.org> * Jörg Sommer: 47320: Completion/Linux/Command/_choom: Add diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index 21ecf9d6e..cbdae4d58 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -287,8 +287,10 @@ expansion. ) item(tt(P))( Turn a file name into an absolute path, like tt(realpath+LPAR()3+RPAR()). -The resulting path will be absolute, have neither `tt(.)' nor `tt(..)' components, -and refer to the same directory entry as the input filename. +The resulting path will be absolute, +will refer to the same directory entry as the input filename, +and none of its components will be symbolic links or equal to +`tt(.)' or `tt(..)'. Unlike tt(realpath+LPAR()3+RPAR()), non-existent trailing components are permitted and preserved. |