zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: empty job texts for suspended .zshrc jobs
Date: Thu, 30 Mar 2017 14:36:36 -0700	[thread overview]
Message-ID: <170330143636.ZM17242@torch.brasslantern.com> (raw)
In-Reply-To: <20170327102016.GA7975@chaz.gmail.com>

On Mar 27, 11:20am, Stephane Chazelas wrote:
}
} zsh: suspended   |

Hm, this is because what you've actually suspended is the "source"
command; the pipeline is the foreground job of the script file that
"source" is reading.  It's just that "source" doesn't get a slot
in the job table because semantically it's masquerading as the top
level shell.

I suspect this is tangentially related to the gymnastics that zsh
performs when you suspend a loop construct and an implicit fork has
to be performed to add a new job table entry.  It's just incomplete
for the case of "source".

The missing jobtext in this example dates back at least to 4.2.0.
In zsh-2.4 the job state is garbage and the shell crashes when the
sleeps ends.  The last version I can try where it appears to work as
expected is zsh-3.0.5.


  reply	other threads:[~2017-03-30 21:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-27 10:20 Stephane Chazelas
2017-03-30 21:36 ` Bart Schaefer [this message]
2017-04-04  9:30   ` Peter Stephenson
2017-04-04 22:44     ` Bart Schaefer

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=170330143636.ZM17242@torch.brasslantern.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).