From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5054 invoked from network); 3 Mar 2021 07:16:32 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Mar 2021 07:16:32 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1614755792; b=OzWdGcKJEqwF5c+loS98lG3k2R6+ILIZFMP7+mP3B905cBR9dt+Hn0Gs2nvNMhxZHKWTLyTOTr pyxQJC/+pIyLOY9bEcCbDnWc0U3aJVx87+cB6wo8Q3RZLZXQ1HkS4lRagzEPa4oqcJQ9SyAD+q Rad7HqCaXbT2sjXOHTUkFsABeQdEawQ82DllcIvK/am7lXugsgxrYf7PDUKA8WdKeTB1ym37+0 qFV3ScuCaeq83F822Ci2GMFXyjwzUp2LvicWvkhzf0tiezkuGknFWJn3oZwHs+9e0ZtOjNOb9R q6EzPtnJU5SjDcQcFKNZFesUse5KKTQV9kdP981orRIotA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (relay3-d.mail.gandi.net) smtp.remote-ip=217.70.183.195; dmarc=none header.from=chazelas.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1614755792; bh=2SW3TNfgD+KARCDhsecCH2aswdWF2o/pJ4TfRNaOKa4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature; b=lva1lm/+zSu+Ud1dtqY6qIQSA2bfTW1SBM/IK3doWbDysVqz0BaL6MQWoQoAY3B8ARE681mGnM popusDbNk4gEsucF96xvB4F+OcZ88SkJMGodyd3c1t8Zb2fIJ/VnsH/hVxg8A7bcRkd+VCzUuC iKtMzA6gcc34Xp/uJ+uZiki5kSd5T4Bnscb/f5ZRl/RX1O5a75hyH0ndKpYlHaAzkNa49GEbJS QwBk3EmEfIhpRp62c5Pl9iGm/jNwo7HoqxG1qLCdt0cfeH1WBNGVXBBscy9/thwDgoXUpQETfb 8EHECj7wKg6gyNl5YsZMBk1z8XWufx2Z8uGw+76N7fKa8Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=zxMO7uQk7/2bl5pUSs8xxRpcgjOtL7fFka5dWGNlyMg=; b=QQBOn4xm2N9kbW3tT1+xbi9U2I ivkLbxrzPSQ/F7QpSH6jO2JPS4lAsffzUSOBcVrvB90t+gxZx8DGnnMzwJ9awCiuPwv6q1UApB2sz y9Gda9bNxlQf+xpWBPSoM0OhL8jqwB4KfQE12r6Kbzn8JrQb33i37KajiS8eAUVZ1w+nox/+98wbY tAxSgvKMrqloRHJhuUCF9vka5iifFv1gOaVrdzGwTKBv0mEEwGIpkJKJ4dcqZ2fKKY/jZd6oCZ/Dy pUaaHcW/LkXFl3m5HWEp/9buBRIZhYaV+f9ktDpF/anXELro0cZ24xoI0wAnnO2Z71H/hSp5qjNNu HyArGB1g==; Received: from authenticated user by zero.zsh.org with local id 1lHLkE-0009JC-25; Wed, 03 Mar 2021 07:16:30 +0000 Authentication-Results: zsh.org; iprev=pass (relay3-d.mail.gandi.net) smtp.remote-ip=217.70.183.195; dmarc=none header.from=chazelas.org; arc=none Received: from relay3-d.mail.gandi.net ([217.70.183.195]:36779) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1lHLjc-0008w3-Rj; Wed, 03 Mar 2021 07:15:54 +0000 X-Originating-IP: 5.71.197.169 Received: from chazelas.org (0547c5a9.skybroadband.com [5.71.197.169]) (Authenticated sender: stephane@chazelas.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 83B076000B; Wed, 3 Mar 2021 07:15:49 +0000 (UTC) Date: Wed, 3 Mar 2021 07:15:49 +0000 From: Stephane Chazelas To: Daniel Shahaf Cc: zzapper , zsh-users@zsh.org Subject: Re: disown -a Message-ID: <20210303071549.oessnssr3n4w4acj@chazelas.org> Mail-Followup-To: Daniel Shahaf , zzapper , zsh-users@zsh.org References: <28c28f42-632d-4ebc-857e-64022f59a895@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28c28f42-632d-4ebc-857e-64022f59a895@www.fastmail.com> X-Seq: 26566 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: 2021-03-03 00:05:38 +0000, Daniel Shahaf: [...] > zsh is not a bug-for-bug reimplementation of bash. > > As to a workaround, you don't specify what -a should do, but perhaps this: > > disown %${(k)^jobstates[(R)suspended:*]} [...] For the record, AFAICT "disown" is a zsh invention. Already there in 1.0 in 1990. ksh added it in ksh93 (a rewrite) released in late 1993. bash in 2.0 released in late 1996 (so the path there is likely to be zsh -> ksh93 -> bash, as ksh93 is generally the shell bash took inspiration from). With also a -h option. yash in 2.0a2 in 2008. In fish, disown is a wrapper function around its disown builtin added in 2.6b1 in 2017. pdksh-based, ash-based, csh-based ones don't seem to have a disown builtin. Of the ones that have a disown builtin above, only bash and yash support -a (also --all in yash). bash added that option (as well as -r) in 2.02 (1998). To this day, it seems the -h and -r options are specific to bash. ksh93's disown supports the usual --help/--usage/--nroff/--man/--author... like all its builtins. See also the related hup and nohup builtins of tcsh (from 1993). -- Stephane