From db3f2d253cacd566f68ecc0dc942a596f89674df Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 9 Feb 2016 16:03:36 +0000 Subject: 37893: document typeset -U behaviour for PATH-style variables --- Doc/Zsh/builtins.yo | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Doc/Zsh/builtins.yo') diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index c425ff1cd..e3a6d564f 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -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) ])( -- cgit 1.4.1