diff options
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/expn.yo | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index ec528313f..b16ec4b5b 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -1375,13 +1375,16 @@ subsect(Static named directories) cindex(directories, named, static) cindex(named directories, static) cindex(static named directories) -A `tt(~)' followed by anything not already covered is looked up as a +A `tt(~)' followed by anything not already covered consisting +of any number of alphanumeric characters or underscore (`tt(_)'), +hyphen (`tt(-)'), or dot (`tt(.)') is looked up as a named directory, and replaced by the value of that named directory if found. Named directories are typically home directories for users on the system. They may also be defined if the text after the `tt(~)' is the name of a string shell parameter whose value begins with a `tt(/)'. Note that trailing slashes will be removed from the path to the directory (though the original parameter is not modified). + It is also possible to define directory names using the tt(-d) option to the tt(hash) builtin. |