From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 2a3155f4 for ; Wed, 3 Jul 2019 18:06:43 +0000 (UTC) Received: (qmail 25335 invoked by alias); 3 Jul 2019 18:06:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44489 Received: (qmail 7407 invoked by uid 1010); 3 Jul 2019 18:06:38 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm1-f54.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25496. spamassassin: 3.4.2. Clear:RC:0(209.85.128.54):SA:0(-2.0/5.0):. Processed in 3.807186 secs); 03 Jul 2019 18:06:38 -0000 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.128.54 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state: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=gOYTkeQB+r3HQbvA8MvZK8CQ/1INRy4EDhleappm7i1xPvMN2cbQxs6PiaF6xoFUqX fvgnPNRtxbu9+eAzYMQBZ22+aaHsR4Hq3HCsDu/E/moE9XE0Ftuugb3daYL6mPrHCFgh 250ZMRWxwKwUFwJQcc4fDOgMVju2XHES5kdeCkqUyLNyOsZl5Bcur+HX9xp8UwT9LNKG 0KmQeutJ3LKdJ/TV2IKWFh29XOnm6VL4tioGCN8j+IV78z1Fbie2VFZOn0tFZ+iuR3kH AAgqhYX4xM0UPrei/sCr8ZKyghnnAoXEal6/9u43zQ/eey9HfBGNNpdLUamsINcV7+7k B1PA== X-Gm-Message-State: APjAAAXu61+P5w3qZ4Sj8WhqO+RALgXBnwJIvht2vP34qKF/keb3f08t gdrhCXpNb0BKmq39blYvoW4+2PBx X-Google-Smtp-Source: APXvYqyOtwBZmb7VvazGxXBJK60iW+4oeVEAtW0jwM4M/m7AGRknLk79slwQ+3t2X+4KrTZ2+B22Bw== X-Received: by 2002:a7b:c8d4:: with SMTP id f20mr9310879wml.90.1562177160556; Wed, 03 Jul 2019 11:06:00 -0700 (PDT) Date: Wed, 3 Jul 2019 19:05:58 +0100 From: Stephane Chazelas To: Aryn Starr Cc: zsh-workers@zsh.org Subject: Re: Zargs bug Message-ID: <20190703180558.tq7hwgrtajgq35ds@chaz.gmail.com> Mail-Followup-To: Aryn Starr , zsh-workers@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20171215 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