From patchwork Thu Dec 15 00:22:18 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: 13073834 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 820F0C4332F for ; Thu, 15 Dec 2022 00:22:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229540AbiLOAWZ (ORCPT ); Wed, 14 Dec 2022 19:22:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiLOAWY (ORCPT ); Wed, 14 Dec 2022 19:22:24 -0500 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D2D4019D for ; Wed, 14 Dec 2022 16:22:21 -0800 (PST) Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id EA5F010AC for ; Thu, 15 Dec 2022 01:22:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202211; t=1671063740; bh=JhjFPP+hdpgxUfAealvROJwMZGBh6OKXM2dzLGsJyJo=; h=Date:From:To:Subject:From; b=GNR1VRGD6tLorlH9VRkfdLjXhtQdms59EEsl9Ydy5XaRTOlvNGF2UlRcQ4Gcy6Qwq 7HaC8UHQVhs0vdNq7g+8qq9QWBciWG4ueY0JdubqRlkTZvljGeni+bmqMp70920AHl KfHp+DH7cW2UhqgJzItHKh73XuuZFBbGujSHNY5fgGX1ncirP0ZGTxvj2WBLMoRzmZ QqTK/CXB8h3Xnf4WrA4zO2bNg0/a0xH0tyOgLvidhhSqNXfUyBJ/u6bnJ9RsYh5WFW sHFQ4iQmquJYI/6D19vB9FuMoqRauiVK/62Lhfnz9IX0fux+FcyGQ2h5eLtxSlErA9 w694bisAAWrTg== Date: Thu, 15 Dec 2022 01:22:18 +0100 From: =?utf-8?b?0L3QsNCx?= To: dash@vger.kernel.org Subject: [PATCH v2 1/3] man: document jobs builtin Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20220429 Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org Fixes: https://bugs.debian.org/558607 --- Resending my patchset from May while I'm at it. src/dash.1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/dash.1 b/src/dash.1 index ff02237..969a883 100644 --- a/src/dash.1 +++ b/src/dash.1 @@ -1464,6 +1464,20 @@ The .Fl r option causes the hash command to delete all the entries in the hash table except for functions. +.It jobs Oo Fl lp Oc Op Ar job ... +Display the status of all, or just the specified, +.Ar job Ns s : +.Bl -tag -compact -offset 5n -width "By default" +.It By default +display the job number, currency +.Pq Sy +- +status, if any, the job state, and its shell command. +.It Fl l +also output the PID of the group leader, and just the PID and shell commands +of other members of the job. +.It Fl p +Display only leader PIDs, one per line. +.El .It pwd Op Fl LP builtin command remembers what the current directory is rather than recomputing it each time. From patchwork Thu Dec 15 00:22:54 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: 13073835 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 A8280C4332F for ; Thu, 15 Dec 2022 00:23:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229642AbiLOAXC (ORCPT ); Wed, 14 Dec 2022 19:23:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbiLOAW5 (ORCPT ); Wed, 14 Dec 2022 19:22:57 -0500 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8C9BC33D for ; Wed, 14 Dec 2022 16:22:56 -0800 (PST) Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id DF6C610AE for ; Thu, 15 Dec 2022 01:22:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202211; t=1671063775; bh=pHTzXZY/7vJtwyPcBiMopJ8j7dWNhZckzeNXV871fm8=; h=Date:From:To:Subject:References:In-Reply-To:From; b=PW1hE/g2Xu+rJFJhrGYJilbLjBKIwqEyQAplU2dM4Ti0zX3ANXRPjuM5qcjAzYAw3 njK1PU67OCjWnVfz6Amq9eXDravk07p5T7lIefrxmSMjUdUqDSSt/JXPdQxDAG6WF+ 6SENPaBJEKW/rkT86HYK20/Ci7r9gMXeYfSf1mD6SDY9LRKfbi3f4M+sGZzPPkgqgp 9nEGIe/VskLzf+DCH9ysc/WNLu40CO9wbYJ45VS+KcugonDhfcDUBTY9wKpcKsVGiu CWmTUAfPKTSuqXJJgOhs1SqJg4hGMt7SgfVABlEuXMWTKBZWlxxSGWlhe1YOe8wX1M YMnyCNLQUzm3g== Date: Thu, 15 Dec 2022 01:22:54 +0100 From: =?utf-8?b?0L3QsNCx?= To: dash@vger.kernel.org Subject: [PATCH v2 2/3] man: note chdir being the same builtin as cd Message-ID: <73d0a6fb6647fc83b592070ec4c4882f1de124b6.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 --- src/dash.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dash.1 b/src/dash.1 index 969a883..dd2bd47 100644 --- a/src/dash.1 +++ b/src/dash.1 @@ -1143,8 +1143,8 @@ Do not execute the command but search for the command and print the absolute pathname of utilities, the name for builtins or the expansion of aliases. .El -.It cd Ar - -.It Xo cd Op Fl LP +.It cd|chdir Ar - +.It Xo cd|chdir Op Fl LP .Op Ar directory .Xc Switch to the specified directory (default 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. From patchwork Thu Dec 15 20:51:19 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: 13074514 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 ED3CBC10F1E for ; Thu, 15 Dec 2022 20:51:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbiLOUv0 (ORCPT ); Thu, 15 Dec 2022 15:51:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiLOUvY (ORCPT ); Thu, 15 Dec 2022 15:51:24 -0500 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2687C1EEC5 for ; Thu, 15 Dec 2022 12:51:22 -0800 (PST) Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 3AEBDF7A for ; Thu, 15 Dec 2022 21:51:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202211; t=1671137480; bh=CFsEq4PWcbWdBwLyPgEIw97elek4I4TckN3r4S6iOuo=; h=Date:From:To:Subject:References:In-Reply-To:From; b=B4tGQn7EJaOvwdgFJfmXgTUaeAGJD+U7AR4aXPHXCXVNHaU/67BUVZcWD+g25GFj/ nCMdKI05QsEA5nMUFSCFTPhnzkiUpwB5pZwH2roYHFnOfIUe9DYwN42xAP+zGIHdaI y0u6B8DMzdlnrx9FECoDEb4ljcmz0BbvpQrhO5ra7KTzS89OXfFxoyfgDI0zs8R2Ak /1iwx5XoLMfGsB7scFGTwLa5IhBHOHB6PxFpJzecPUHqzvcN5coN3pAT6Ay0coE9E/ ODeXDvCbRH+BV0hYkm/Ojuox6kgu6XP0GU+upryLmz2on05H3fNmj90NTol/gZjw2b 140sdtJFCxdEQ== Date: Thu, 15 Dec 2022 21:51:19 +0100 From: =?utf-8?b?0L3QsNCx?= To: dash@vger.kernel.org Subject: [PATCH v2 4/3] man: document false built-in Message-ID: <20221215205119.sihav7onr3l77el4@tarta.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 Only true was documented, add false just below it (out of order, but so is true, and the grouping makes much more sense). --- src/dash.1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dash.1 b/src/dash.1 index 514fcfe..f06efb6 100644 --- a/src/dash.1 +++ b/src/dash.1 @@ -1095,6 +1095,8 @@ etc). .It : .It true A null command that returns a 0 (true) exit value. +.It false +A null command that returns a 1 (false) exit value. .It \&. file The commands in the specified file are read and executed by the shell. .It alias Op Ar name Ns Op Ar "=string ..."