diff options
author | Manuel Presnitz <mpy@gmx.net> | 2013-07-28 14:09:56 +0200 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-07-28 18:37:00 +0100 |
commit | 5b85ac9011bb5443fc019ad00907c0a16597b21a (patch) | |
tree | bd475539ffd10eb06c897e7c79ea12dd915a23f6 /Doc/Zsh/expn.yo | |
parent | c5d9abc6c8f818a3823c70696e412c4496f6a5be (diff) | |
download | zsh-5b85ac9011bb5443fc019ad00907c0a16597b21a.tar.gz zsh-5b85ac9011bb5443fc019ad00907c0a16597b21a.tar.xz zsh-5b85ac9011bb5443fc019ad00907c0a16597b21a.zip |
31592: improve documentary for handling of named directories.
Minor changes of phrasing.
Diffstat (limited to 'Doc/Zsh/expn.yo')
-rw-r--r-- | Doc/Zsh/expn.yo | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index e8d1ed297..5ba3e21af 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -1708,14 +1708,14 @@ Note that trailing slashes will be removed from the path to the directory It is also possible to define directory names using the tt(-d) option to the tt(hash) builtin. -In certain circumstances (in prompts, for instance), when the shell -prints a path, the path is checked to see if it has a named -directory as its prefix. If so, then the prefix portion -is replaced with a `tt(~)' followed by the name of the directory. -The shortest way of referring to the directory is used, -with ties broken in favour of using a named directory, -except when the directory is tt(/) itself. The parameters tt($PWD) and -tt($OLDPWD) are never abbreviated in this fashion. +When the shell prints a path (e.g. when expanding tt(%~) in prompts or when +printing the directory stack), the path is checked to see if it has a named +directory as its prefix. If so, then the prefix portion is replaced with a +`tt(~)' followed by the name of the directory. +The shorter of the two ways of referring to the directory is used, +i.e. either the directory name or the full path; the name is used +if they are the same length. +The parameters tt($PWD) and tt($OLDPWD) are never abbreviated in this fashion. subsect(`=' expansion) |