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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11392 invoked from network); 3 Mar 2021 07:58:02 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Mar 2021 07:58:02 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1614758282; b=cvNX9lJK+REzJLct1aRIJoU0HcXaw/nc/zdnxXgmHGl9n8KA4IDy8SYu3NqHiCpHR4vClek/uK J8MlbPSeV/mJUSc+HwdVnhgLSM7cW1gTe2jEVsgKAK6zjkpec/9ncvpZaZzSQrGJs+GFKKFxOp mA4orsAxy/JLJzGp80eza+mAzt2wPgyuaJvvt771+T5u6ovD00ZS4Uude9w0g7gaoU7pyD7zWn x+3KRrZJFQO+tKpKQt/g6GQsyVtMpf8jL4VrW24yYtVDmTsheyMA9g/TCo2MNXQX1E9uvEDgyB vIepdis9njQ2QmbsIFfAo26z0t6kOh4hPX2riV4wCoP5Kw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-il1-f179.google.com) smtp.remote-ip=209.85.166.179; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1614758282; bh=0MLl13G++A6N6CkbYgcg5dtXt7pSo+Zl3Pyc9NZogxs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=mtjr+okjzPGgZGhXsv7vss/15CGc1MaBdpTKmh73QUPZRucnKROEDeL0FSLvfdY6wbbDZ+xXb8 Pr9GnAo5EW2SOWyr0laLMiqfwG7AwTj7ExmT0sZqdkYsYoZ0xjceRe0nq+tDjzHuYO6Vh+aslK OYKF+xFfRcVce/sl3BS25rAIGyRdeKEdg4pRuKEluoYFuZ7Hv969D5Jt6/1eTWomZJnZWFgGD7 PScJybTF4FZVx1tQ15JXKjNtcH34+9dM9brXH2rY6o0t6vGKCj/mrx3g1Yu2fekt2ot6XS9Y7a tS7QSbLRNfUkJWjoD9QN1JB5BLvhoTyesRA24gZwmWX4vg==; 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:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=0MLl13G++A6N6CkbYgcg5dtXt7pSo+Zl3Pyc9NZogxs=; b=0i8IQnoC/u3Uj478yY/Y7lCrgL w9qzg3GL+OJlKjSXKAjNjueE8BiOBAt7Y0ZN+dY1+0kOfbukhJc+ABsYP/AXGsXlayL36TNw2exMZ WN2nOAxlGAW0BTyutG9jdTlrbEX5FBcvEBfGKyH9XizETN+JtUnA2a/1/x6Q0uanaie6EFOEYYNgo xrx25e1DKKjqF94nA9fasBDkFR1xgPEkNWAACEDnhL/2wTJlb7zuQjDIhsJjdlH34QUS5H/FbHxuw xoVqnWb15J98soRHJ8UQj/8kiTZ4EVCz8+FPUl72BigN3B7/fam3UwYKIU/fcM9Iw2+aCyRoYAeJ/ wkd3MILA==; Received: from authenticated user by zero.zsh.org with local id 1lHMOP-000C3F-7d; Wed, 03 Mar 2021 07:58:01 +0000 Authentication-Results: zsh.org; iprev=pass (mail-il1-f179.google.com) smtp.remote-ip=209.85.166.179; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-il1-f179.google.com ([209.85.166.179]:43830) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lHMNr-000Bg5-JB; Wed, 03 Mar 2021 07:57:28 +0000 Received: by mail-il1-f179.google.com with SMTP id b5so10413516ilq.10 for ; Tue, 02 Mar 2021 23:57:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0MLl13G++A6N6CkbYgcg5dtXt7pSo+Zl3Pyc9NZogxs=; b=tBOcAzKcEYeDVEYF09Ek0mSCJjpSpHWL884Go2UG7UmD96IgNhNywr2ZP7BWaoJ891 StAngSmezLPHsXCZaxmHzaYZvt4A8gkIUzgEd9IOM3aYt0MgyM11D8yWdJ8YlDDupmh3 WPo43aIePkkJRZmcRpz4n8XBY7lADD9kmjDoPKSjk2ig2nubd3XGbyuhKEc11zXmGb7q GjFxwys5qAmw9JdjQjipqOSf8GkbVB0q7luWrhEHHcT27co9NypETDQcP5tOhCQhaYWP RFUGQPnO1UBvBcwwBv4pddZzVju7T9jPh0c/4dGfaVyFJaGmCxPPUCF0mTsVfdLrNrPt ZPeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0MLl13G++A6N6CkbYgcg5dtXt7pSo+Zl3Pyc9NZogxs=; b=O9OIsbcqUd7jlD641YsfIPi6tcpiWdRHxbq/brLPE7lF1L0aKzD6hVQjMjZ6K+zBAS 31JL0jhEHbDlZlbEzdqhWAbTILzUfIxdG2D35AQCBWRUC+Zo2IrWW2yi9QJnn2jC4yd3 IgSdLa54fU5Mkz9MJNfvRmXLCjvxkyseTRORymB4AFk+cgz49oeoQflBU33dO35bb5Fk rxdKfjfF5iaJ0UbXxGtP8SDGUsjmQ6tCzMFcUVcEkE3x2Jl0VsBMCN33X284wAMosbBt xSgQOg8pIigZ98q906I2JDQSAdHE21idaEJPjVA40jOQBQ/vxPj9fOz3D0XOmipC8EIf 9zCA== X-Gm-Message-State: AOAM531kq97W01TTkfqLqLzLLogzxpfit0HST0bGfat43XtCoGN4gDa8 z/cB9ljXmEpQk/Ubys799xnIl1orjFJ/JtV13nw= X-Google-Smtp-Source: ABdhPJzKzTFLjQcDkLYlZJMAjLVdd2CnU55+bXAAc+69ihWB82JYANOa7mxfbeHTMn3WmDGlNQteT2fyPkb6jl9esiA= X-Received: by 2002:a05:6e02:12c7:: with SMTP id i7mr21362376ilm.66.1614758246218; Tue, 02 Mar 2021 23:57:26 -0800 (PST) MIME-Version: 1.0 References: <28c28f42-632d-4ebc-857e-64022f59a895@www.fastmail.com> <20210303071549.oessnssr3n4w4acj@chazelas.org> In-Reply-To: <20210303071549.oessnssr3n4w4acj@chazelas.org> From: Pier Paolo Grassi Date: Wed, 3 Mar 2021 08:57:15 +0100 Message-ID: Subject: Re: disown -a To: Daniel Shahaf , zsh-users@zsh.org, zzapper Content-Type: multipart/alternative; boundary="000000000000a9ff8d05bc9d338e" X-Seq: 26567 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: --000000000000a9ff8d05bc9d338e Content-Type: text/plain; charset="UTF-8" out of curiosity, how have you assembled this informations? from memory or digging in the source trees? Il giorno mer 3 mar 2021 alle 08:16 Stephane Chazelas ha scritto: > 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 > > -- Pier Paolo Grassi --000000000000a9ff8d05bc9d338e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
out of curiosity, how have you assembled this information= s? from memory or digging in the source trees?

Il giorno mer 3 mar 2021= alle 08:16 Stephane Chazelas <= stephane@chazelas.org> ha scritto:
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 perha= ps 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

--
Pier Paolo Grassi
--000000000000a9ff8d05bc9d338e--