From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9602 invoked by alias); 20 Dec 2017 11:50: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: 42151 Received: (qmail 25667 invoked by uid 1010); 20 Dec 2017 11:50:04 -0000 X-Qmail-Scanner-Diagnostics: from mail-io0-f171.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.223.171):SA:0(-1.9/5.0):. Processed in 1.231327 secs); 20 Dec 2017 11:50: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=-1.9 required=5.0 tests=BAYES_00,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: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pYAkN6JhS4r6/39z8WN+S8ffLCueCrcYg2m+Yj/bzDE=; b=EURbBvzBVIwMrgXUqVqN7Gmaiu/yJ2TeTIAvEmyIwoD+E6dt8H6g7eE2nXCyVbQHIS Y5KHH5VYUwZAzuvL6J1kQ24lL6Cr6iGDvhGN3Y7gN+bzVEgnUanUgGBxhHl46eF36zrj 5hBnKM9yyI3puzS4VJ6C3njPxFoOUktc3D1hqDZLeaE+WxsnE35PJbAqrYLiMZs5Lc/P s7fT8UvxannE3Con87shoSLiTQfWEowZeoXdBQXRlsCJd33h7nn5gyyyBKif/bMkwXZ2 OpOGupBhejrNMQV8Shyn7ftyxE0Saoq//PhIpRVuMsBHQi64LDMqS4+lSFofwshkGH6F M8jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pYAkN6JhS4r6/39z8WN+S8ffLCueCrcYg2m+Yj/bzDE=; b=hrDPsy+YS2msezrHOIpBcEbsPymWPxki+7ClMK6VZ9D/H2fUgTDQh+Kctfrp8CyMYO Bj4UfqhVdUXpsSSf2XpOuTiUiNKfoCHRNbxEcM99VQXfqXmljrJ9egtTJBRvQ/eHfWKj QdfbmN4QbB8hgJ7XWRuXKX9qvsXG457RleyXDT+tixjQQ7EI1hYpmOZV8v4MX9/Zj+jd LfBmwFTvHN3RgFFsMwzJv0yIHBhgwTZ1ODWBC9ynP7K4BOv5vx7GiIVbJHGvB0qdakKy LrJ7pL5b3Y14ETnCIvfe/2HJMpwRq/JflQa9rd4HSg0byxsnoAIutgK/UMw75w550WPa fTsQ== X-Gm-Message-State: AKGB3mJ5ZlmWyV1zPIWDQPo8x5bg4BH0C8VD8RhfJ5ide0I/8Of40ADn 9P28LK8oCfamddFC2bNzyhUZZA== X-Google-Smtp-Source: ACJfBovjxEZH1TCnO2S8+9nB0GOeXfpyo3nSb43Z2GAsVEbzh/LwyGtDHi/kc2oku1RpX1b4ZQWyKA== X-Received: by 10.107.232.9 with SMTP id f9mr8633034ioh.157.1513770600233; Wed, 20 Dec 2017 03:50:00 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: `jobs -p` does not behave as documented and required by POSIX From: dana In-Reply-To: <20171220104205.5p7g46ajt4knhmfg@sinister.lan.codevat.com> Date: Wed, 20 Dec 2017 05:49:58 -0600 Cc: Peter Stephenson , Matthias Richerzhagen , zsh-workers@zsh.org Content-Transfer-Encoding: 7bit Message-Id: <2533C394-22BB-4483-9517-E7A87382210A@dana.is> References: <20171220085620.76561c93@zam158.zam.kfa-juelich.de> <20171220094549.1d755d1a@pwslap01u.europe.root.pri> <20171220104205.5p7g46ajt4knhmfg@sinister.lan.codevat.com> To: Eric Pruitt X-Mailer: Apple Mail (2.3273) On 20 Dec 2017, at 04:42, Eric Pruitt 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