about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-28 10:45:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-28 10:45:54 +0000
commitb015f25ec9b2d8ff80a3955880cce7c90384840c (patch)
treeed21b29ee8c7e9c4c5f2c927767d16db34cf4597 /Doc
parent4908fb3158aa452b7c5244279a94868875d5afa5 (diff)
downloadzsh-b015f25ec9b2d8ff80a3955880cce7c90384840c.tar.gz
zsh-b015f25ec9b2d8ff80a3955880cce7c90384840c.tar.xz
zsh-b015f25ec9b2d8ff80a3955880cce7c90384840c.zip
zsh-workers/8084
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/builtins.yo7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 328e7db80..fb1d63569 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -682,7 +682,12 @@ item(tt(pwd) [ tt(-rLP) ])(
 Print the absolute pathname of the current working directory.
 If the tt(-r) or the tt(-P) flag is specified, or the tt(CHASE_LINKS)
 option is set and the tt(-L) flag is not given, the printed path will not
-contain symbolic links.
+contain symbolic links.  Otherwise, the shell will print the stored
+directory, i.e. the value to which tt($PWD) was last set.  In this case, it
+will check that the current tt($PWD) is still valid; if it is, or if it is
+unable to find a valid path because the current directory no longer exists,
+it will print that, and if it is not, it will print the full path without
+symbolic links and update tt($PWD) accordingly.
 )
 alias(r)(fc -e -)
 findex(read)