zsh-workers
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: "John, Michael" <Michael.John@Crown.com>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: unknown user error
Date: Fri, 22 Jun 2018 11:17:01 -0500	[thread overview]
Message-ID: <C8C40904-7199-4A97-8979-2AEFFA2139D8@dana.is> (raw)
In-Reply-To: <BYAPR07MB464776FCD03668F17DBBA59598750@BYAPR07MB4647.namprd07.prod.outlook.com>

On 22 Jun 2018, at 09:48, John, Michael <Michael.John@Crown.com> 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


  reply	other threads:[~2018-06-22 16:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-22 14:48 John, Michael
2018-06-22 16:17 ` dana [this message]
2018-06-22 16:20 ` Daniel Shahaf
2018-06-22 16:52   ` Bart Schaefer
2018-06-22 19:46     ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C8C40904-7199-4A97-8979-2AEFFA2139D8@dana.is \
    --to=dana@dana.is \
    --cc=Michael.John@Crown.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).