From patchwork Thu Dec 15 00:23:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?0L3QsNCx?= X-Patchwork-Id: 13073836 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75C0DC4332F for ; Thu, 15 Dec 2022 00:23:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbiLOAXG (ORCPT ); Wed, 14 Dec 2022 19:23:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbiLOAXE (ORCPT ); Wed, 14 Dec 2022 19:23:04 -0500 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 933EF33D for ; Wed, 14 Dec 2022 16:23:03 -0800 (PST) Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id E7B4D10B0 for ; Thu, 15 Dec 2022 01:23:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202211; t=1671063782; bh=5o6tJ0cSUTQyKxBYqsWZuD7huartTkVdL44QI2weMfY=; h=Date:From:To:Subject:References:In-Reply-To:From; b=FrY0jhlQyxhsXKtUP39sRSGOUrmnMHXpIUJfRMjlNsJfvap17Nu2Y9npaWtPQb5Ha Y+gcJdtG9qRX1ioeZtfBaTmzIya4VZuFjgYmHiDHxH49XDh5bcAUcHErlcJbTZmxqS +TsrassWBVgpFuPZJGGAjJvKNZOjyOevS43+sU7w07lEiN77/S+PpBe5llm40ibjNf 4dgBeDpszZ6eCDLqw/DkdW01jV+ybcGxR7OhakcC/b8xzMk0hcwmmr2B9QgUuT/h9+ e2XF1GG5HXwGlx3xQHsK+rcI4p4gq3flbTL1KRBy13InNS3Wevkv2ALixddQ9VMn9N U5DLjj3vWujhQ== Date: Thu, 15 Dec 2022 01:23:01 +0100 From: =?utf-8?b?0L3QsNCx?= To: dash@vger.kernel.org Subject: [PATCH v2 3/3] man: document kill builtin Message-ID: <90e2b94e6e75aab4d591affa3eb0c63446eb404d.1671063677.git.nabijaczleweli@nabijaczleweli.xyz> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20220429 Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org The manual now contains all built-ins --- src/dash.1 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/dash.1 b/src/dash.1 index dd2bd47..514fcfe 100644 --- a/src/dash.1 +++ b/src/dash.1 @@ -1478,6 +1478,33 @@ of other members of the job. .It Fl p Display only leader PIDs, one per line. .El +.It kill Oo Fl s Ar sigspec | Fl Ns Ar signum | Fl Ns Ar sigspec Oc Op Ar pid | job ... +Equivalent to +.Xr kill 1 , +but a +.Ar job +spec may also be specified. +Signals can be either case-insensitive names without +.Dv SIG +prefixes or decimal numbers; the default is +.Dv TERM . +.It kill Fl l Op Ar signum | exitstatus +List available signal names without the +.Dv SIG +prefix +.Pq Ar sigspec Ns s . +If +.Ar signum +specified, display just the +.Ar sigspec +for that signal. +If +.Ar exitstatus +specified +.Pq > Sy 128 , +display just the +.Ar sigspec +that caused it. .It pwd Op Fl LP builtin command remembers what the current directory is rather than recomputing it each time.