Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Should (t)path = array-unique-special work this way



Hello

typeset -U path
PATH="$PATH:/component/nr1"
path+="/component/nr2"
PATH="/component/nr2:$PATH"
print "${(t)path}"
declare -p path


Outputs:
array-unique-special
typeset -a path
path=( /component/nr2 /usr/local/bin /usr/bin /bin /usr/games
/component/nr1 /component/nr2 )

Tested on zsh-5.0.8 and 5.2

Best regards,
Sebastian Gniazdowski



Messages sorted by: Reverse Date, Date, Thread, Author