From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16558 invoked by alias); 20 Dec 2017 09:46:04 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42149 Received: (qmail 12147 invoked by uid 1010); 20 Dec 2017 09:46:04 -0000 X-Qmail-Scanner-Diagnostics: from mailout1.w1.samsung.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(210.118.77.11):SA:0(-6.9/5.0):. Processed in 6.264581 secs); 20 Dec 2017 09:46:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID, T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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= X-AuditID: cbfec7f4-f790c6d0000075d3-01-5a3a3150b6df Date: Wed, 20 Dec 2017 09:45:49 +0000 From: Peter Stephenson To: Matthias Richerzhagen , zsh-workers@zsh.org Subject: Re: `jobs -p` does not behave as documented and required by POSIX Message-id: <20171220094549.1d755d1a@pwslap01u.europe.root.pri> In-reply-to: <20171220085620.76561c93@zam158.zam.kfa-juelich.de> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOIsWRmVeSWpSXmKPExsWy7djPc7oBhlZRBlvPylisbnnJbHGw+SGT A5PH4cYzzB6rDn5gCmCK4rJJSc3JLEst0rdL4Mro/PiUsaCfp+LmgwWsDYztHF2MnBwSAiYS K17sYYawxSQu3FvP1sXIxSEksJRR4nzbDlYI5zOjxM7N9xlhOloX/QKyOYASyxglHutD1Pxj lFhxdCtU9xlGibcT90E5Z4G6e5+A7WARUJVY3nqNFcRmEzCUmLppNthUEYEYicttnWwgtrCA l8Tdib1gNbwC9hL3Nj0C6+UUcJB4eG8jE4jNL6AvcfXvJyaIi+wlZl45wwhRLyjxY/I9FhCb WUBTYuvu9ewQtrbEk3cXwN6REFjDJnG/CeIFCQEXibVnkiHmCEu8Or6FHcKWkejsOAg1v59R 4km3L0TvDEaJ02d2sEEkrCX6bl9khFjAJzFp23RmiJm8Eh1tQhAlHhI3N26GhpyjxOTDl1kg gTKZUWL94RusExgVZiG5exaSu2chuXsBI/MqRpHU0uLc9NRiE73ixNzi0rx0veT83E2MwORw +t/xLzsYFx+zOsQowMGoxMNbYWAZJcSaWFZcmXuIUYKDWUmEt/ozUIg3JbGyKrUoP76oNCe1 +BCjNAeLkjivbVRbpJBAemJJanZqakFqEUyWiYNTqoFxHpf6dKFLme5cWz/mS778vEaYmcMi uWnTWo17xRPqk5UzeQXe2mYdiLjXuEXBz2XZ4p4Mi7sPuBrati018Assvf0+N/GDzLYbx3h3 avRpem32fOqdJ8zT4m5nKFtuYxP5/+mkmNqk7UzKO2zY5tzOyoiZJL/o3G2rqsIPn3kzqpP2 q83wTlViKc5INNRiLipOBAD3aPLeCgMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsVy+t/xK7r+hlZRBhueKFmsbnnJbHGw+SGT A5PH4cYzzB6rDn5gCmCK4rJJSc3JLEst0rdL4Mro/PiUsaCfp+LmgwWsDYztHF2MnBwSAiYS rYt+MULYYhIX7q1n62Lk4hASWMIoMe39KXYIp4FJ4t/l8ywQzjlGibNzHjJBOGcZJbbN2M4M 0s8ioCqxvPUaK4jNJmAoMXXTbLC5IgIxEv+fvgWrERbwkrg7sReshlfAXuLepkdgcU4BB4mH 9zZCDZ3KKPFz1QuwBL+AvsTVv5+YIA60l5h55QwjRLOgxI/J91hAbGYBdYlJ8xYxQ9jaEk/e XQBbIAQUv3F3N/sERuFZSFpmIWmZhaRlASPzKkaR1NLi3PTcYkO94sTc4tK8dL3k/NxNjMAg 33bs5+YdjJc2Bh9iFOBgVOLhrTCwjBJiTSwrrsw9xCjBwawkwlv9GSjEm5JYWZValB9fVJqT WnyIUZqDRUmct3fP6kghgfTEktTs1NSC1CKYLBMHp1QDY6LxxzpZ28avM/yvWtr/LJvWNe9j eK6p6ncFt4bwLUXNCa0lm70FfbsufHh4IS1KyDzm56q9O7Ky9OdsPHJyke8d1dgfc9bsLG07 9/ai9PVdakVXVuT4yC/+eOYo78PmWw17i3e8MQpeVpkap2gnKna4eNqUI/p8v5IXbDj5S+uM ycUXtxdJ7lFiKc5INNRiLipOBAA4p2SvbgIAAA== X-CMS-MailID: 20171220094551eucas1p2eccc4b1ea115d3f93b21aa22d9972c57 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171220080716epcas1p14317a75dd17abfa9d127ef341bcc383b X-RootMTR: 20171220080716epcas1p14317a75dd17abfa9d127ef341bcc383b References: <20171220085620.76561c93@zam158.zam.kfa-juelich.de> On Wed, 20 Dec 2017 08:56:20 +0100 Matthias Richerzhagen wrote: > Hello, >=20 > the manpage for the `jobs` buildin function states: >=20 > > =E2=88=92p Display only the process IDs for the process gr= oup > > leaders of the selected jobs. >=20 > > STDOUT > > If the =E2=88=92p option is specified, the output shall consist = of one > > line for each process ID: > >=20 > > "%d\n", 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 li= sts process groups. If the -r flag is specified only running j= obs 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 environm= ent space with the given string, truncated if necessary to f= it. This will normally be visible in ps (ps(1)) listings. This f= ea=E2=80=90 ture is typically used by daemons, to indicate their state. There's no mention of *only* listing process groups. pws