From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1313 invoked by alias); 20 Dec 2017 10:42:13 -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: 42150 Received: (qmail 14891 invoked by uid 1010); 20 Dec 2017 10:42:13 -0000 X-Qmail-Scanner-Diagnostics: from mail-pl0-f44.google.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(209.85.160.44):SA:0(-1.9/5.0):. Processed in 3.91756 secs); 20 Dec 2017 10:42:13 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: eric.pruitt@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:pgp-key:user-agent; bh=aB1Mdfj4Qlqxmrgx8uO3RSxVBjtAVpkPPOSE3g2ILPs=; b=X6rG8sO/Q0+KoXslmsvZmgjgXVbLj5FsRZ0/dv8AzzBZFzmX7FzZimVK8gAfYf0O1S DbXl0ugIZPgntZJPtDg6tDYlgO/l5MYPnq4Dtf57s/gwc41TtjTyk7GSAFsYD8LkZQWW Onqf2hj9IzUweHJrwVr6NgxIY/jyEx9A9SQ5BYfHP4HuwEo6woBXK0RIJtg8G1F8FTtI JgnBCo534HStJQ13RRINN1VP8tMNWLGiISBZlyOd7EmZuuNUcD+H/osD/Fy9kb12yBn0 7WA57IsT4lfqL6JSl85F1nHEAlunJj6H4MjURNo1yyEiGTzmjc+slltm9RMdIHkt25AE bD+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:pgp-key:user-agent; bh=aB1Mdfj4Qlqxmrgx8uO3RSxVBjtAVpkPPOSE3g2ILPs=; b=KsQanUjId9i5cVj7VCNCfrxX9IVXINivFHBWIUbTEwusHKLCtMmntzd0f20WKkymkM xQIQ7DvxV3sifHBkfddUCbDh71QoJeEaEAY+5VaiZyE3q2ne+iwXlWfFT5HD0khvU9bf hO6v72oF1LiUjr3WUJ3pPolUsu5sRmw+S8QNlRZnOi9BKayDgFsPvGPG2gkGIczsep84 ZmH+0t+P1rHQDRIp6kL+jbOSpkocYyacbeOGfrE/1WYXEZ+ix00aa9jPydF2A2eAJrm6 57hqH56+qJ1q//Cvwhi7H9PgKsTdhfFgJ3zMvs7uidcMhoYmaf0/ro6NMuXPPbCnYMvu uQiw== X-Gm-Message-State: AKGB3mKJeiF31qlHFko2a2Q5PKuZThkafxZo3PDlPkWcU+waiE+P5hAO wy7ZxNF7Q/NWxxr+GJ9XGGY= X-Google-Smtp-Source: ACJfBosuxJKRtfnX5X5ZiViQENUY+STz2zX83YIc45mzCW3+dPCdMPqOD/E3unnvhRHAOY13dWDYGw== X-Received: by 10.84.235.10 with SMTP id o10mr6521069plk.354.1513766526799; Wed, 20 Dec 2017 02:42:06 -0800 (PST) Date: Wed, 20 Dec 2017 02:42:05 -0800 From: Eric Pruitt To: Peter Stephenson Cc: Matthias Richerzhagen , zsh-workers@zsh.org Subject: Re: `jobs -p` does not behave as documented and required by POSIX Message-ID: <20171220104205.5p7g46ajt4knhmfg@sinister.lan.codevat.com> Mail-Followup-To: Peter Stephenson , Matthias Richerzhagen , zsh-workers@zsh.org References: <20171220085620.76561c93@zam158.zam.kfa-juelich.de> <20171220094549.1d755d1a@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171220094549.1d755d1a@pwslap01u.europe.root.pri> PGP-Key: https://www.codevat.com/pgp.asc#F8601B5D2511B4C3535232488DDDE2E6053692AB User-Agent: NeoMutt/20170113 (1.7.2) On Wed, Dec 20, 2017 at 09:45:49AM +0000, Peter Stephenson wrote: > On Wed, 20 Dec 2017 08:56:20 +0100 > Matthias Richerzhagen 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", > > Erm, I don't think you're looking at the right manual... The text Matthias is quoting is from the POSIX specification (http://pubs.opengroup.org/onlinepubs/009695399/utilities/jobs.html). I 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: ~$ (exec -a sh zsh -c 'sleep 1 & sleep 2 & jobs -p') [1] - 1022 running sleep 1 [2] + 1023 running sleep 2 Eric