zsh-workers
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Eric Pruitt <eric.pruitt@gmail.com>
Cc: Peter Stephenson <p.stephenson@samsung.com>,
	Matthias Richerzhagen <matthias.richerzhagen@alumni.fh-aachen.de>,
	zsh-workers@zsh.org
Subject: Re: `jobs -p` does not behave as documented and required by POSIX
Date: Wed, 20 Dec 2017 05:49:58 -0600	[thread overview]
Message-ID: <2533C394-22BB-4483-9517-E7A87382210A@dana.is> (raw)
In-Reply-To: <20171220104205.5p7g46ajt4knhmfg@sinister.lan.codevat.com>

On 20 Dec 2017, at 04:42, Eric Pruitt <eric.pruitt@gmail.com> wrote:
>think their point is moot though because Z-shell does not claim to be
>POSIX compliant in its default mode. That said, when running Z-shell as
>"sh", the output of `jobs -p` still includes the "extra" information:

Seems this was brought up before (linked from workers/22180); Bart had some
thoughts about it but no action was taken:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=346162

Anyway, as a work-around one can do this:

  kill ${${jobstates#*:*:}%=*}

Or in a script it's probably sufficient most of the time to kill the shell's
entire process group (maybe `-HUP` would be a little nicer):

  kill 0

dana



      reply	other threads:[~2017-12-20 11:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20171220080716epcas1p14317a75dd17abfa9d127ef341bcc383b@epcas1p1.samsung.com>
2017-12-20  7:56 ` Matthias Richerzhagen
2017-12-20  9:45   ` Peter Stephenson
2017-12-20 10:42     ` Eric Pruitt
2017-12-20 11:49       ` dana [this message]

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=2533C394-22BB-4483-9517-E7A87382210A@dana.is \
    --to=dana@dana.is \
    --cc=eric.pruitt@gmail.com \
    --cc=matthias.richerzhagen@alumni.fh-aachen.de \
    --cc=p.stephenson@samsung.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).