From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Strange behavior of $jobstates
Date: Sun, 25 Nov 2018 13:11:12 -0800 [thread overview]
Message-ID: <CAH+w=7ZjP4szfdPvTGJ1iRg7M6kmJkE5bq0Ef1oOuebD29W9XA@mail.gmail.com> (raw)
In-Reply-To: <B00ED18E-7E30-4B13-BE7B-4C60C3657C0A@dana.is>
[Moved from zsh-users]
On Mon, Nov 12, 2018 at 11:53 PM dana <dana@dana.is> wrote:
>
> On 12 Nov 2018, at 22:46, Manabu Matsui <manabu.matsui@gmail.com> 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.
parent reply other threads:[~2018-11-25 21:11 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <B00ED18E-7E30-4B13-BE7B-4C60C3657C0A@dana.is>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7ZjP4szfdPvTGJ1iRg7M6kmJkE5bq0Ef1oOuebD29W9XA@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).