zsh-users
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <stephane@chazelas.org>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: zzapper <zsh@rayninfo.co.uk>, zsh-users@zsh.org
Subject: Re: disown -a
Date: Wed, 3 Mar 2021 07:15:49 +0000	[thread overview]
Message-ID: <20210303071549.oessnssr3n4w4acj@chazelas.org> (raw)
In-Reply-To: <28c28f42-632d-4ebc-857e-64022f59a895@www.fastmail.com>

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


  reply	other threads:[~2021-03-03  7:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-02 11:34 quonting and globbing Pier Paolo Grassi
2021-03-02 11:58 ` Mikael Magnusson
2021-03-02 12:24   ` Pier Paolo Grassi
2021-03-02 23:31 ` disown -a zzapper
2021-03-03  0:05   ` Daniel Shahaf
2021-03-03  7:15     ` Stephane Chazelas [this message]
2021-03-03  7:57       ` Pier Paolo Grassi
2021-03-03 10:23         ` Finding out where features come from (Was: disown -a) Stephane Chazelas
2021-03-03 14:00           ` Pier Paolo Grassi
2021-03-03 14:45             ` Pier Paolo Grassi
2021-03-03  9:36       ` disown -a zzapper
2021-03-03  9:40         ` Peter Stephenson
2021-03-03 20:12         ` Daniel Shahaf
2021-03-03  0:12   ` Daniel Shahaf
2021-03-03 10:17     ` zsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210303071549.oessnssr3n4w4acj@chazelas.org \
    --to=stephane@chazelas.org \
    --cc=d.s@daniel.shahaf.name \
    --cc=zsh-users@zsh.org \
    --cc=zsh@rayninfo.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).