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

Re: Setting $path variable



>> Is this supposed to happen:

>> Mycomputer % path=$path

>> Mycomputer % echo $PATH
>> /bin /usr/bin /usr/local/bin
>> 
>> So $PATH variable gets mangled. Adding something to the end of $path
>> (by path=($path /usr/X11/bin) does not have this effect.
>
>Yes, I think this is a feature, not a bug.  You should say
>"path=($path)" if you want to keep path as an array.

zsh 2.5.0 did not do this. Should we really change this behaviour?

/tg




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