From 4a34c9628942a3631500e51b57ce4ccb4ac77fb4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 27 Sep 2008 19:57:25 +0000 Subject: 25755/25756: Jörg Sommer: improved handling of module arguments 25759: fix dynamic named directory crash, static named directory consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Doc/Zsh/expn.yo | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Doc') 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. -- cgit 1.4.1