Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: `jobs -p` does not behave as documented and required by POSIX
- X-seq: zsh-workers 42149
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Matthias Richerzhagen <matthias.richerzhagen@xxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: `jobs -p` does not behave as documented and required by POSIX
- Date: Wed, 20 Dec 2017 09:45:49 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20171220094553euoutp01059c2b53a5ed51d5b74988c29a058fcb~B95Fbnshm1981419814euoutp010
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1513763153; bh=4mrgooGOGsBZjmgao/SsXIP5TW2tbx/nh0XbZcL4yXs=; h=Date:From:To:Subject:In-reply-to:References:From; b=cSFRNENdn9VAuRs8bMXNTipbbiPuyShj1UDQjyyvVZy/gH5Ww0oAfbLrpBZZmpquU aDPo/+Mfl0rGFcSuS/HgYoaa7KXD1IdPksk9QGi2U7ZC52JTCHtNVL33f/k00hc5TF LSiREArPjHbDpEs10YVo6qlR7sZklqe0mvTsgOJE=
- In-reply-to: <20171220085620.76561c93@zam158.zam.kfa-juelich.de>
- 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
- Organization: Samsung Cambridge Solution Centre
- References: <CGME20171220080716epcas1p14317a75dd17abfa9d127ef341bcc383b@epcas1p1.samsung.com> <20171220085620.76561c93@zam158.zam.kfa-juelich.de>
On Wed, 20 Dec 2017 08:56:20 +0100
Matthias Richerzhagen <matthias.richerzhagen@xxxxxxxxxxxxxxxxxxx> wrote:
> Hello,
>
> the manpage for the `jobs` buildin function states:
>
> > −p Display only the process IDs for the process group
> > leaders of the selected jobs.
>
> > STDOUT
> > If the −p option is specified, the output shall consist of one
> > line for each process ID:
> >
> > "%d\n", <process ID>
Erm, I don't think you're looking at the right manual...
jobs [ -dlprs ] [ job ... ]
jobs -Z string
Lists information about each given job, or all jobs if job is
omitted. The -l flag lists process IDs, and the -p flag lists
process groups. If the -r flag is specified only running jobs
will be listed and if the -s flag is given only stopped jobs are
shown. If the -d flag is given, the directory from which the
job was started (which may not be the current directory of the
job) will also be shown.
The -Z option replaces the shell's argument and environment
space with the given string, truncated if necessary to fit.
This will normally be visible in ps (ps(1)) listings. This fea‐
ture is typically used by daemons, to indicate their state.
There's no mention of *only* listing process groups.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author