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

Re: unknown user error



On 22 Jun 2018, at 09:48, John, Michael <Michael.John@xxxxxxxxx> wrote:
>I’m trying to set my path but zsh gives be an unknown user error. I’m not sure
>what’s going on, never ran into this issue in the past.
>
>$ export path=(/usr/local/bin ...)
>zsh: unknown user

Probably you're using an older version of zsh that doesn't have export as a
reserved word, and it's treating (/u...) as a glob qualifier. On those versions
of zsh, you need to do array declarations and assignments in two steps.

Also, i think Bart told me once that the result of exporting the array part of a
tied parameter is undefined (even though it does seem to work in this case), so
maybe it would be safer to use PATH for that:

  % path=(/usr/local/bin ...)
  % export PATH

dana



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