zsh-workers
 help / color / mirror / code / Atom feed
* Re: Strange behavior of $jobstates
       [not found] ` <B00ED18E-7E30-4B13-BE7B-4C60C3657C0A@dana.is>
@ 2018-11-25 21:11   ` Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2018-11-25 21:11 UTC (permalink / raw)
  To: Zsh hackers list

[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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-25 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAN1e-MQb87kK9yhAo6vaaWD-2gXd0qk=9xzJQi=soW6QyH_c0Q@mail.gmail.com>
     [not found] ` <B00ED18E-7E30-4B13-BE7B-4C60C3657C0A@dana.is>
2018-11-25 21:11   ` Strange behavior of $jobstates Bart Schaefer

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).