Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _pick_variant: Update builtin check
- X-seq: zsh-workers 44154
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] _pick_variant: Update builtin check
- Date: Thu, 21 Mar 2019 07:57:38 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm2; bh=Kd1Yqzm FKbSl0jwuCtMM7tZdakc9cTWpl0CvpFoMK0E=; b=N1aoqJj07vq7xKw1t+/Rw7m kueltVe5A0N3DO40TxwMYSUM7XUTyHDulQ4MSjB/onGoXyb577V4d+Sh86amG1yf JNTQrBVSBgdPWJkwCJnQQh51/XCc6zdZLBCKa73qww+WzBnvaLk/bRdVWsIBDs+t HTyIAnyVVrrDSYqyeRPnT3MA9iBXkVxPBtYyTcc0ayEcwkaqNnHOFo24sVOzcfmU 7TXqLjtH+zeikVKWeKX/uwlndnIPYdWPtLRQIUfuZ9MP+QeMmH7zkK362+gpJgL2 bD/vemVAgErj1yED1XZKcF9oRrUD67XFoNClPmMxVpLvB8UdKt6FT1MJXp94y0A= =
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Kd1Yqz mFKbSl0jwuCtMM7tZdakc9cTWpl0CvpFoMK0E=; b=EqH2d0jXwS1CpAxIjP3zN9 1XYYURZzDDZlti74pfLhNy95wqcwLNMS7OgSMdkCHcSMJSlCnZ6AJmKdXjVwi6Hn hfk1srM5+4s1pdmZJdtbEGt3+67LwDuW5cs3Zlz823P43uId1+3KIph+ZOXCVNHE l03Rv/82uWnM8wEoT7/vlS56jQO6h8xs1GdDFpc10WtzOI5Ysz1fB5L0qw26LzfO f0OKQIl/vwql+N/Gm/iZBo3SU9ikr3U4uGnsN1IS62xGNDn/0Vk/adNy9S/+INhP CdEp2F3rgH9alJ6IJTBq9Nrun6K6fZXWDJhL6RlZv1h5nYER7cdpYl8YXC3WPBtA ==
- In-reply-to: <20190321001636.GA57147@CptOrmolo.darkstar>
- 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: <20190320020511.GA6739@CptOrmolo.darkstar> <20190320033815.GA22718@CptOrmolo.darkstar> <20190320125238.GA48465@CptOrmolo.darkstar> <20190320130523.rwpxbzi4u66i2srz@tarpaulin.shahaf.local2> <20190321001636.GA57147@CptOrmolo.darkstar>
Matthew Martin wrote on Thu, 21 Mar 2019 00:17 +00:00:
> On Wed, Mar 20, 2019 at 01:05:23PM +0000, Daniel Shahaf wrote:
> > Matthew Martin wrote on Wed, Mar 20, 2019 at 07:52:39 -0500:
> > > +builtin_precommands=(- builtin eval exec nocorrect noglob time)
> >
> > May I suggest a comment here documenting the semantics of this variable?
> > For example, why doesn't it list the 'command' precommand (presumably
> > becaus that one doesn't preserve builtins, but this info should be in
> > the comment, not in the list archives)?
>
> How's
> +# Precommands which allow the command to be builtin (unlike command and sudo).
> +local -ar builtin_precommands=(- builtin eval exec nocorrect noglob time)
I understand what you mean in the context of this thread, but I think
the two uses of the term 'command' might be confusing to someone who
opens the file in a year or three. How about:
# Precommands which allow their wrapped command to be a builtin.
# All of these are necessarily builtins or reserved words themselves, but not all builtin precommands are listed here: for one, the 'command' builtin is excluded.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author