1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-28 10:21:09 +02:00

users/21779: Clarify documentation of the ':a' word modifier.

This commit is contained in:
Daniel Shahaf 2016-07-22 06:25:23 +00:00
parent 5c7d92bd9c
commit 00f18f29de
2 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,8 @@
2016-07-22 Daniel Shahaf <d.s@daniel.shahaf.name>
* users/21779: Doc/Zsh/expn.yo: Clarify documentation of the
':a' word modifier.
* 38890: Completion/Zsh/Function/_add-zle-hook-widget,
Completion/Zsh/Function/_add-zsh-hook: _add-zle-hook-widget:
New completion.

View file

@ -219,9 +219,12 @@ noted.
startitem()
item(tt(a))(
Turn a file name into an absolute path: prepends the current directory,
if necessary, and resolves any use of `tt(..)' and `tt(.)' in the path.
Note that the transformation takes place even if the file or any
intervening directories do not exist.
if necessary; remove `tt(.)' path segments; and remove `tt(..)' path segments
and the segments that immediately precede them.
This transformation is agnostic of the filesystem: `tt(/foo/bar/../baz)' shall
always be transformed to `tt(/foo/baz)', regardless of whether `tt(/foo)'
exists or what kind of object (dir, file, symlink, etc.) it is.
)
item(tt(A))(
Turn a file name into an absolute path as the `tt(a)' modifier does, and