From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24347 invoked by alias); 20 Dec 2017 08:06:42 -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: 42147 Received: (qmail 8862 invoked by uid 1010); 20 Dec 2017 08:06:42 -0000 X-Qmail-Scanner-Diagnostics: from mail-out-1.itc.rwth-aachen.de 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(134.130.5.46):SA:0(-4.2/5.0):. Processed in 2.655305 secs); 20 Dec 2017 08:06:42 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: matthias.richerzhagen@alumni.fh-aachen.de X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BxCgBeFjpa/7IagoZbHgEGDIM+ggiDf?= =?us-ascii?q?5kumzsKiktDFAEBAQEBAQEBAWsohSUEJFswAgUhAhFOijYIpCqCJ4skCQGBBYJ?= =?us-ascii?q?fghKBTAqKf4INDDGCQyAFilWPColkgRKBKpJlDYQVh32HZJZMAgICAgkCGoE7N?= =?us-ascii?q?iKBT3CCeoIDDAGCR4oZAYEUAQEB?= X-IPAS-Result: =?us-ascii?q?A2BxCgBeFjpa/7IagoZbHgEGDIM+ggiDf5kumzsKiktDFAE?= =?us-ascii?q?BAQEBAQEBAWsohSUEJFswAgUhAhFOijYIpCqCJ4skCQGBBYJfghKBTAqKf4IND?= =?us-ascii?q?DGCQyAFilWPColkgRKBKpJlDYQVh32HZJZMAgICAgkCGoE7NiKBT3CCeoIDDAG?= =?us-ascii?q?CR4oZAYEUAQEB?= X-IronPort-AV: E=Sophos;i="5.45,430,1508796000"; d="scan'208";a="30161850" Date: Wed, 20 Dec 2017 08:56:20 +0100 From: Matthias Richerzhagen To: Subject: `jobs -p` does not behave as documented and required by POSIX Message-ID: <20171220085620.76561c93@zam158.zam.kfa-juelich.de> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [134.94.169.205] X-ClientProxiedBy: fhex-w1-a.ad.fh-aachen.de (2002:8682:1ab1::8682:1ab1) To fhex-s1-b.ad.fh-aachen.de (2002:8682:1ab2::8682:1ab2) Hello, the manpage for the `jobs` buildin function states: > =E2=88=92p Display only the process IDs for the process group > leaders of the selected jobs. > STDOUT > If the =E2=88=92p option is specified, the output shall consist of= one > line for each process ID: >=20 > "%d\n", =46rom the command: ( sleep 5; echo 1 ) & ( sleep 10; echo 2 ) &; jobs -p one can see, that the output does NOT only display the process IDs: [1] - 9282 running ( sleep 5; echo 1; ) [2] + 9283 running ( sleep 10; echo 2; ) making the usage in commands like kill `jobs -p` generate a lot of error messages. This is with=20 $ zsh --version=20 zsh 5.4.2 (x86_64-unknown-linux-gnu) on Arch Linux. Greetings, Matthias