From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22285 invoked from network); 4 Mar 2022 13:13:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 Mar 2022 13:13:55 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1646399635; b=nhRPk9Zfkjgnm1b7ymsHRXxiiWF2y2B1vVjddyphEkcrg8QxcvW8ihDI3AU2HaAggxWYuDFj4x s8odQaQRggOoBmxwe3aJtQq/9bPScfvkDq06SOMzRr5HsZVWtKyzbduvs5/OBKbcaEXjW/D5N+ kuaYOFWLQ3OTsjNlBYBD7Hh4DMCbenI/x5rjwvwmSMAgH6AMYAkio5iaUpk8b/+fXyg9MQtfSA XIiXcl7GKTCXiSbifb+FnzwbUcR5UYpB/ChYZWz2arOxogcYx1/ej9a/QzuErJ0DfRLuFEGS5u umJBemRBh+saMfcCHAbTuClQ6XdXV9YTLPWFEERjxGSbFg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f182.google.com) smtp.remote-ip=209.85.208.182; dmarc=none header.from=alumni.princeton.edu; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1646399635; bh=5X/5YgHxyVQao9PBpFmqjtjhRfrWIlR3/H8VCeBCABc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature; b=rs0eHOfbWj43VXtrxk1FXhtD/Ye0xs27OlLcC5w/k6l1azyu1V/lSYY01e1AaUsST+QrLNsLu8 OLY8rOPljXJPBo9fJ9U1rMwQRMRW4Y+pwv/+CaGRD3TjY6yNrO3ETKPApuuapuAriLq2iIhZHZ BlMhzCwg/beE13KqCNCe6SZKI3s/laC2YkFMV7+mou46u9uJj/Ze8FbSY4D55f+sLbyLscLj2E 3wEOS5pOSw0EQUraQgUEqJQc4GD3fZ6qv4KB0cN3qHm6R2j3+qaUS10L124C49k8gnk8YsKYF3 fCQkr2lFsDYMbHxU6p+5mDPnmi7epWDGSiT5JMklZ1IgKg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=WjG+Opb8hD9+ahpWw0ZD8JICz+AZx6Va1Og4qnK1umE=; b=II0NNETeVjh8YudwfWcU1m5e69 AmXPm4QCT2Cg6ACEQWEGWYvQwpjuTPxejbe8BTuEtTIk3Cquyb3xkGkEUX+g6ZxpmQ95zEr7Gb5nO NdbkjNo4IY1bhzucoRspS5BuoHt7qPa74BoAZq6gChG3ZelXNhyCHSPdLAT0w1coHpWOboLmb5ZKC Vrsk0w178blrYz8De62nrM3v6qp+ArbASD9h+EDdRY7e02aSfshXK1bLc4iYe2mAWppPNxpYElKTW xJt/xFrnzp2Yyy7V1djtepRKASQttwEQx53JiM+kwsTIT2ijxojyl7ulBdwvbelS2WXZxzfocDeq4 8+6mWajQ==; Received: from authenticated user by zero.zsh.org with local id 1nQ7kp-0001Ov-O0; Fri, 04 Mar 2022 13:13:55 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f182.google.com) smtp.remote-ip=209.85.208.182; dmarc=none header.from=alumni.princeton.edu; arc=none Received: from mail-lj1-f182.google.com ([209.85.208.182]:35582) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nQ7kc-00014v-Ng; Fri, 04 Mar 2022 13:13:43 +0000 Received: by mail-lj1-f182.google.com with SMTP id e8so10941991ljj.2 for ; Fri, 04 Mar 2022 05:13:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WjG+Opb8hD9+ahpWw0ZD8JICz+AZx6Va1Og4qnK1umE=; b=KSIuycOnOK8QuV6nE4Z0loR3sM6id6mbsR3RjSPjRVscI146xUiofLXFAET6cmHbEP 0dRr3aNq+s+Q6T3Y2Ttkh5d4a2Ve7lspZc+ZCab4s/41xwlOhPRtL5oPBQj6UIXvs17s 3RQNFnscD40cayLBeOWiX+kgkwKaH/9H1gD8WNpTzZ0nwRWNxud+bum5kiic+PM3Sa3a AEn4KeLy9TwIAzgLn3RsVJEL37RDC1ZRRSasM7V5WunAMCZzQZ2GRwcVw86IppJfuOaa TUaPUs+AsxHOngg+wpqPrVK+TvpWBQI6SReqMc+/5kj0WDruXZu/YyyvMf1tyLAsG26x zOZQ== X-Gm-Message-State: AOAM5306FzJjaz1twiDaD90WM0HBocjoatZcC/xqMjYO6l1pCpetGqMU Qr14QPZubeJNOFkAbImZpjxiUYy/Q1P6HQ3W2Qk+laBv7BE= X-Google-Smtp-Source: ABdhPJx8X2Tnw+DPnjxkEptkc9/3iP6RtJWTuBJTRA1x5gMPtbcBJ89GuMrmJLgCFffdeyh/RFeVzO2WWN3jZaCA1A8= X-Received: by 2002:a2e:a786:0:b0:246:215e:a0c1 with SMTP id c6-20020a2ea786000000b00246215ea0c1mr26959584ljf.118.1646399621932; Fri, 04 Mar 2022 05:13:41 -0800 (PST) MIME-Version: 1.0 References: <1912988517.1110378.1646131250968@mail2.virginmedia.com> <18fc86e5-467d-4753-9f82-6a3073874334@www.fastmail.com> <59C35A96-D41D-4EF7-A02B-94B70AE1122D@kba.biglobe.ne.jp> <20220304130438.GA7687@tarpaulin.shahaf.local2> In-Reply-To: <20220304130438.GA7687@tarpaulin.shahaf.local2> From: Vin Shelton Date: Fri, 4 Mar 2022 08:13:05 -0500 Message-ID: Subject: Re: [Bug] $jobstates does not work in $() To: Daniel Shahaf Cc: "Zsh Hackers' List" Content-Type: multipart/alternative; boundary="0000000000009fa94b05d964485c" X-Seq: 49806 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --0000000000009fa94b05d964485c Content-Type: text/plain; charset="UTF-8" Jun's fix is necessary for me. - Vin On Fri, Mar 4, 2022 at 8:05 AM Daniel Shahaf wrote: > Jun T wrote on Fri, Mar 04, 2022 at 11:14:07 +0900: > > > > > 2022/03/04 8:07, Bart Schaefer wrote: > > > > > > On Thu, Mar 3, 2022 at 2:05 PM Vin Shelton > wrote: > > >> > > >> I don't see how you could have provoked this, Peter, but in the > latest sources, I'm seeing a test failure under i3 in Arch: > > > > > > Try this: > > > > > > diff --git a/Test/W03jobparameters.ztst b/Test/W03jobparameters.ztst > > (snip) > > > + zpty_input 'zmodload zsh/parameter' > > > > This doesn't work for me. > > > > I think the problem is that MODULE_PATH is not imported by the zsh > started > > by zpty (for security). > > > > > > diff --git a/Test/W03jobparameters.ztst b/Test/W03jobparameters.ztst > > index 474adfaec..de3420038 100644 > > --- a/Test/W03jobparameters.ztst > > +++ b/Test/W03jobparameters.ztst > > @@ -37,6 +37,7 @@ > > %test > > > > zpty_start > > + zpty_input "MODULE_PATH=$MODULE_PATH" > > Add ${(q)}? > > Cheers, > > Daniel > > > > zpty_input 'sleep 3 &' > > zpty_input 'print $jobstates' > > zpty_input '(print $jobstates)' > > > > > > --0000000000009fa94b05d964485c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Jun's fix is necessary for me.

=C2=A0 - Vin

On Fri, Mar 4, 2022= at 8:05 AM Daniel Shahaf <d.s= @daniel.shahaf.name> wrote:
Jun T wrote on Fri, Mar 04, 2022 at 11:14:07 +0900:
>
> > 2022/03/04 8:07, Bart Schaefer <schaefer@brasslantern.com> wrote: > >
> > On Thu, Mar 3, 2022 at 2:05 PM Vin Shelton <acs@alumni.princeton.edu>= ; wrote:
> >>
> >> I don't see how you could have provoked this, Peter, but = in the latest sources, I'm seeing a test failure under i3 in Arch:
> >
> > Try this:
> >
> > diff --git a/Test/W03jobparameters.ztst b/Test/W03jobparameters.z= tst
> (snip)
> > +=C2=A0 zpty_input 'zmodload zsh/parameter'
>
> This doesn't work for me.
>
> I think the problem is that MODULE_PATH is not imported by the zsh sta= rted
> by zpty (for security).
>
>
> diff --git a/Test/W03jobparameters.ztst b/Test/W03jobparameters.ztst > index 474adfaec..de3420038 100644
> --- a/Test/W03jobparameters.ztst
> +++ b/Test/W03jobparameters.ztst
> @@ -37,6 +37,7 @@
>=C2=A0 %test
>=C2=A0
>=C2=A0 =C2=A0 zpty_start
> +=C2=A0 zpty_input "MODULE_PATH=3D$MODULE_PATH"

Add ${(q)}?

Cheers,

Daniel


>=C2=A0 =C2=A0 zpty_input 'sleep 3 &'
>=C2=A0 =C2=A0 zpty_input 'print $jobstates'
>=C2=A0 =C2=A0 zpty_input '(print $jobstates)'
>
>

--0000000000009fa94b05d964485c--