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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25033 invoked from network); 3 Mar 2021 00:06:42 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Mar 2021 00:06:42 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1614730002; b=RmWiPtPlBBuikF8CpaBhSGixp8i1zR5Gx3n3xgUYhRm+gJpYZQfGDlQRLWUFG9uAmeJZANInGm wTfLLADWig+l5q2I/TokpbFwrtE4SQ0X9qT03p82Ya7MvT6+Z3TAkPjQu4ZogS8bu6+JBinQAX sZv8ywmFTo7gD1M3zHJ9J9CQLLMQI0cw609sVjLncfnsPsvnJFWgzRrEvC3oXIaRBptvie0oJy upZMdZJdlDtjEMwU7r1P7+LtktCXWKtN8r2CtfX4OgQCbmKR975TLBD737Tss0lEyJTmXCpy5G MqQSOrZpSfQ9bFu7ptK/+DafJQpBWM7SyUiYsYZGfutozA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1614730002; bh=YrR2dQ0UuyCdlLwVj8YVHi1/E1YRUttWKeaEWLlitnQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:To:From:Date: References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=ngVCe/8CjjxYaMzVyUATcBh1PdzpQZcuCmGiYgZkAufbgHoPH1xdVaW5OqG45lbBC7WV6hv16t aijlMlJoHwNwo662hH6QiblCKxI+xXUDd4KN0onPcN+y6XR/H5Xj6m/tODKP2EjAfcECNiAW9j 4oB+fpcNIe/nbFHRk/pN8Tjaj9pQ/QxlhpzAAfEFUxKF1FNsqA3DOwxscWQGjD8Yi8bWSCMhxX ij9YqqkZxDRmFoYKZSYxIqQHadccuybEWrAk9tLtqOoqBlnXjYLmDw9jcXHtssJO4s4Pqq5lmd OfHHxERy2/RIi2okxMl3c9QHwc6Fknhzv0OEyueQ1fwNYA==; 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-Transfer-Encoding: Content-Type:Subject:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=S0KGpcgmta/c/g877LN5PRUiEx8Z/P7uyLyY1zO9kuo=; b=ZZFRjHaWNK/d6QezU8+Lk6vMsX EOYYjEDIrV3Wc/Y8HbdveA4QL5QJRYuzKiUVvQnf21pJpFOFfDFb2aTu8BA7PVwcJ+gKtoFzWrdyR u+m5oiBuq02g6vieUbWxfqI2t6SW4FMgEYlzveSJ3txsFj9+NtgNXb/g/xbVh7W3GAFcNcsT3iOiP iHCWqiF32TgOVNbFwWcNx1uqzOOQvg2nnhE3MpxKrNPoDCpud0j/RQDybNF8O7LAtpnJDCu03S73T jKYumkjs62DIXoxyLsenrPiBKCUFlNJ/TmAUQTKI2/E5C5oxcAhf/gBgnz+DtPlBfBJncHf8DR1t0 1hprgW8w==; Received: from authenticated user by zero.zsh.org with local id 1lHF2G-000N8h-St; Wed, 03 Mar 2021 00:06:40 +0000 Authentication-Results: zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out2-smtp.messagingengine.com ([66.111.4.26]:40143) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lHF1d-000Mkz-P3; Wed, 03 Mar 2021 00:06:03 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id F1F9A5C003D; Tue, 2 Mar 2021 19:05:59 -0500 (EST) Received: from imap37 ([10.202.2.87]) by compute3.internal (MEProxy); Tue, 02 Mar 2021 19:05:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type :content-transfer-encoding; s=fm2; bh=S0KGpcgmta/c/g877LN5PRUiEx 8Z/P7uyLyY1zO9kuo=; b=XLrQIPnlEFbdf8CynQCX2/okUD41UbbsXmzm5y2dur NLvDHjj5wGG7M3V/cX3/S92+cnGN+E7FuciefHiwL+1Oe3Dz/ByBZTJ1zroKU/mz LlkHDVp7RrfDSTaPxQuF7ST7yqUa9A7sxT3KapEmHXdlco34VLe9PkzW8YLJYoBj EpU/0v7tV+Jtfm3jHdx6/CngFq2wUifq34n8fe+rUDqlVcjfUOjBvcznRcN9Nv3l Uu8jlmPYqVYyvS/IHdXn0IRw+DySzfz+2Ccytr7lLt/CZMm3wuy7QK5YhVImQZr4 PgsajHLtZI4909pwOPtwML1jmdapk7pppbXx68kTQ7gg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=S0KGpcgmta/c/g877LN5PRUiEx8Z/P7uyLyY1zO9k uo=; b=QqcFaajBqTGFdV29v8nRM9Vj8RvpWpW/LYS0ttp87P82vFri6SkLdR6LK jzSqs9J7QCMF37qT/6h6wEudz09w1cmStwzISfOd1yUrT6D3Dd2M10+b4RVlJzxQ Ulw0CmOLl3s5FmV8JPxrAxGE7q6NJbUFNatajKQ6UrXGkGMPRjzRhpM91L9uyyAs h/OkeS8hu6p/rN8Gd+Sj39D1kbyxmL3UCWft9WPQlGnzZ859ONKa7XPduk+My+75 JBNXPff2/CKwzmj7cJVkAcMlM6+o2TUTZj0coY6OVwZ5rnRXglBpc2xQd2BbHCFq TlAS0j22DjG5ZG/V9gJNHsY+aFYkA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtuddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdffrghnihgvlhcuufhhrghhrghffdcuoegurdhssegu rghnihgvlhdrshhhrghhrghfrdhnrghmvgeqnecuggftrfgrthhtvghrnhepheejiefhje efffehteehudfhueeiuedvleeuffeiheekvdeliefhhffhvedvudegnecuffhomhgrihhn pehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7641F6B4005F; Tue, 2 Mar 2021 19:05:59 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-206-g078a48fda5-fm-20210226.001-g078a48fd Mime-Version: 1.0 Message-Id: <28c28f42-632d-4ebc-857e-64022f59a895@www.fastmail.com> In-Reply-To: References: Date: Wed, 03 Mar 2021 00:05:38 +0000 From: "Daniel Shahaf" To: zzapper , zsh-users@zsh.org Subject: Re: disown -a Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 26564 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: zzapper wrote on Tue, 02 Mar 2021 23:31 +00:00: > Confused as to whether disown behaves differently between zsh & bash >=20 Presumably you mean "why" rather than "whether". About that, see https://github.com/zsh-users/zsh/blob/5ede2c55f144593c16498c3131a76e1881= 14a9c6/Etc/FAQ.yo#L2056-L2102, the first and penultimate paragraphs. More below. > in zsh >=20 > >disown -a > disown: job not found: -a >=20 >=20 > =C2=A0bash >=20 > david@mint-HP-600B=C2=A0 $ sleep 200 > ^Z > [1]+=C2=A0 Stopped=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sleep 200 > david@mint-HP-600B=C2=A0 $ disown -a > bash: warning: deleting stopped job 1 with process group 47533 >=20 >=20 > I desire to use disown -a in zsh but it's not working and not document= ed zsh is not a bug-for-bug reimplementation of bash. As to a workaround, you don't specify what -a should do, but perhaps thi= s: disown %${(k)^jobstates[(R)suspended:*]} The references for that are spread across several parts of the manual (zshexpn(1) for ${^foo}, zshmodules(1) for $jobstates, etc), but in a nutshell, it disowns the jobs that are listed as "suspended" in $jobstates. You can even syntactic sugar that: function disown() { if [[ $# -eq 1 && #1 =3D=3D -a ]] ; then set -- %${(k)^jobstates[(R)su= spended:*]} ; fi builtin disown "$@" }