Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] declarednull: felipec's approach
- X-seq: zsh-workers 47773
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Subject: Re: [PATCH] declarednull: felipec's approach
- Date: Mon, 28 Dec 2020 13:00:10 -0800
- Archived-at: <https://zsh.org/workers/47773>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-12/CAH%2Bw%3D7a_p%2Ba7ZvS5qQSX%3DYM_9AJP_t1c%2Bcm%3Dht9bG-dePknjLg%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-oi1-f182.google.com) smtp.remote-ip=209.85.167.182; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tI/PNd/qaeYPydaAExeZZ/teP0fn83ip/yqvheX7E3g=; b=Xv60QP/eQzls0k4vh1AguGCmXY7o4bm1yIDOPeMR+u15sH6Srt0q07/j3WTJzTTSj/ woT7HhhwEyoTP2u5s4WDLeeaOm7nhYZvo84FNnjxyCW8k9pmgDLJ1oAtpi33Nh9+W4Cp XeFNGfONfy3Jzul1ifYhHLajBzm6yEkJnSK9pV4jgjgupPdJ8bUJ7x39Zyj8z5dLRACO WvEDRHGM6FaaCS+Z8HCS8vqXrOSdWz72sX6oqOD/iij0znMaGrwDivHinHam/IZCswqP c5OmY+2WySE5KnXbsYiW9vjfK5aVUwnklot4kXLuFyAoVZtjkc691Klmt7zCWsyK5rfQ dAvQ==
- In-reply-to: <CAMP44s3J0tWc7LHdjL8kuhBwUpOnpQsPzuVyxVH_PzwP=G9w3Q@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <20201223234711.492603-1-felipe.contreras@gmail.com> <CAH+w=7Yzvqm0aPzeCvHje-s1CZmPj6CE4QBMTkK29QnhDvm_tA@mail.gmail.com> <CAMP44s3J0tWc7LHdjL8kuhBwUpOnpQsPzuVyxVH_PzwP=G9w3Q@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
On Mon, Dec 28, 2020 at 12:09 PM Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
>
> On Sun, Dec 27, 2020 at 4:06 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > On Wed, Dec 23, 2020 at 3:47 PM Felipe Contreras
> > <felipe.contreras@xxxxxxxxx> wrote:
> > >
> > One other thing that has me scratching my head about your patch ... I
> > can't see any reason why it matters that the bit value is (1<<30), but
> > if I try, for example, overloading (1<<22) as I did for PM_DECLARED,
> > the argument lists of shell functions stop working.
>
> Because some variables have initially the flag PM_DONTIMPORT (1<<22),
> for example IFS, so it's like initially they don't have any value
> (i.e. PM_NULL).
Yes, but nothing ever looks at PM_DONTIMPORT after setting up the
parameter table, and how did the positional parameters get involved,
and why does that NOT happen on the "raw" declarednull branch? I
guess it has to be something that's not in your diff but that's
looking for exactly the PM_NULL bit-pattern, such that omitting
PM_UNSET makes that comparison fail.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author