Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zargs bug
- X-seq: zsh-workers 44489
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Aryn Starr <whereislelouch@xxxxxxxxxx>
- Subject: Re: Zargs bug
- Date: Wed, 3 Jul 2019 19:05:58 +0100
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Q3NdJE19YRxzO9wtH8vMArm2Tc4kHXL+si3SVnZQeok=; b=hLal9TaGdwuiqJGNmkqY8OucHoZSoHtmy/mma4S2Ss/hSqJIPbLpSiAfvGPub04eZ5 deYNIUaRnE4FiNDi7X7PEwG7yZIr4oHrOwX7hbjlVxhR5OTPLA3seE0/OKcsqQ+hyHNT S1b9qgrlx9/VNmqwy6czhMDWshYHUFppPRcjzofmJqCYaABberJYV725z2wUfBH0FXRv IrXcTEYKCrtzx74mfOTUub/ye7mMjcSMKgHuzGYLiu03HOvL+X/IBv9/Ns8Wcirth05X WM90DEykmMPuswLu9LG2UOhT6GmA0eGN+eeMXv9n2XnAd09TFJeMIhSL79lFFxN458Ol qIEw==
- In-reply-to: <F49F336B-CAA1-4992-B7EF-E6D04763CF4E@icloud.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>
- Mail-followup-to: Aryn Starr <whereislelouch@xxxxxxxxxx>, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <F49F336B-CAA1-4992-B7EF-E6D04763CF4E@icloud.com>
2019-07-03 22:08:04 +0430, Aryn Starr:
> I run this line:
>
> $ zargs -t -i _ -- ceer whh -- compdef _=which
> compdef ceer=which
> compdef whh=which
>
> But the completions don’t activate. When I manually run
> ‘compdef ceer=which’, though, it works flawlessly.
[...]
zargs runs the commands in a subshell, so they can't affect the
current shell environment.
Same as if you'd run:
(compdef ceer=which)
AFAICT, it's not documented but the code of zargs has:
# Everything has to be in a subshell just in case of backgrounding jobs,
# so that we don't unintentionally "wait" for jobs of the parent shell.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author