Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unknown user error
- X-seq: zsh-workers 43089
- From: dana <dana@xxxxxxx>
- To: "John, Michael" <Michael.John@xxxxxxxxx>
- Subject: Re: unknown user error
- Date: Fri, 22 Jun 2018 11:17:01 -0500
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PAFASuGhEa/nmT4E9drrOEwoKf6K4fxoV0Mgu8yFfiE=; b=H1XEMFV2uITScZsN5OmbxkApxj38Ghh6OixiSQbbkVKq6AjemUTd+ec/6IN6aeK2Xr tLjCSvBNJ8UPE4xl5A5JUZo56m5uNSvOhrn5AwLklEt9UdIh7yfMUx8JtNwW+R1W9gyW T46YSvgl2qA4/YlXLlKFNV9/Akjh9XPw/sbFyzCbcEovHcoEZmp/MaOkI4nuNvIdx007 JSBDINUTi9WT1ewah/IvTJoy79kRIugZVV5lcF9eMqcnRbVVmikRwWqs6XBsob2tgMKZ JNH1S5l+RMGhr17NQGO9M//Tx2SWT/xWTDhIFKkp7pqEk7tHylk7ljaXZQgR96gnezMc 6VFQ==
- In-reply-to: <BYAPR07MB464776FCD03668F17DBBA59598750@BYAPR07MB4647.namprd07.prod.outlook.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BYAPR07MB464776FCD03668F17DBBA59598750@BYAPR07MB4647.namprd07.prod.outlook.com>
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