Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Strange behavior of $jobstates
- X-seq: zsh-workers 43841
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Strange behavior of $jobstates
- Date: Sun, 25 Nov 2018 13:11:12 -0800
- 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; bh=Vowf3ECnLCZXbMul6KXSRsQmK5QdBx/YxiYufbpyvsc=; b=DwI+XsDxJVol/g/ZDQtAmy9YRtTjBCm+jk9RCwdowJuMHFRJDZq8fA3teqv1GuCJ5T dA7Vr3pd7qtwzmih7ViMUNrbgHrCg0ClHZXhNpG8yNLfrlBaGeP8mZ977nkz0Nglvjan /LfzgBWRKozEOi6lyXbl+hibCnpi0uZvMLxGhNGSWrj27T7TLMKwCrbCj8RYOlJQpjxq ue6CF/nxsh4pTm1eWO8wiR4LC7KNmuq4izdVq5RzVzlo4jrp4SMhQSJfJZD/MOLZrbgp Y3slY//kyEUAqnTH71FR5LHHr/uc2/y2bBDzsI5JGrEjfoTwCEyuj4mcEKewOj7grgcs OonQ==
- In-reply-to: <B00ED18E-7E30-4B13-BE7B-4C60C3657C0A@dana.is>
- 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: <CAN1e-MQb87kK9yhAo6vaaWD-2gXd0qk=9xzJQi=soW6QyH_c0Q@mail.gmail.com> <B00ED18E-7E30-4B13-BE7B-4C60C3657C0A@dana.is>
[Moved from zsh-users]
On Mon, Nov 12, 2018 at 11:53 PM dana <dana@xxxxxxx> wrote:
>
> On 12 Nov 2018, at 22:46, Manabu Matsui <manabu.matsui@xxxxxxxxx> wrote:
> >I found a strange behavior of $jobstates. When I pipe the output of
> >echo $ jobstates,
> >its output is empty.
>
> The difference is the result of faf0035e53 (workers/42702). I guess anything
> that previously used information from the current (soon-to-be-parent) shell,
> like $jobstates and $sysparams[pid], would be affected that way.
Coming to this a bit late, but:
This seems inconsistent with the effort that we made way back in 2002
(workers/17265 and 17297) to be sure the "jobs" command works in
subshells. If "jobs" works (which it still does), why shouldn't
$jobstates remain valid?
This is independent of other behavior on the left side of pipes, etc.,
such as the "echo ${a::=2}|cat" example later in the original thread.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author