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

Re: Small problem with typeset -U.



> Hi!
> 
> A little problem with mirror parameters (like path and PATH) and typeset
> -U command.
> 
> If I set -U option for one of pair of mirrored parameters, it is not set
> for other. Thus, e.g.
> 
> typeset -U path
> PATH=$PATH:~/bin:~/bin
> 
> still results in ~/bin being in path/PATH two times. The same holds also
> if I set -U for path and try to change PATH.

This behaviour is deliberate since it gives more flexibility to the shell.
As I remember when I originally introduced it others agreed that this is
useful.

Zoltan




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