1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

37893: document typeset -U behaviour for PATH-style variables

This commit is contained in:
Peter Stephenson 2016-02-09 16:03:36 +00:00
parent 95663e9365
commit db3f2d253c
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2016-02-09 Peter Stephenson <p.stephenson@samsung.com>
* 37893: Doc/Zsh/builtins.yo: document behaviour of typeset -U
for parameters with multiple interfaces.
2016-02-09 Daniel Shahaf <d.s@daniel.shahaf.name>
* 37924: Completion/Unix/Command/_git: Completion: _git:

View file

@ -2001,6 +2001,11 @@ item(tt(-U))(
For arrays (but not for associative arrays), keep only the first
occurrence of each duplicated value. This may also be set for
colon-separated special parameters like tt(PATH) or tt(FIGNORE), etc.
Note the flag takes effect on assignment, and the type of the
variable being assigned to is determinative; for variables with
shared values it is therefore recommended to set the flag for
all interfaces, e.g. `tt(typeset -U PATH path)'.
This flag has a different meaning when used with tt(-f); see below.
)
item(tt(-Z) [ var(n) ])(