summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2022-12-15 01:22:18 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2023-01-05 17:41:20 +0800
commitd483fa794db46b4e09708b8c98b93d53bee6ed64 (patch)
treeaeab405e752491e30b0479f4b88650b9f812bbc5
parent5c55b53f2b028228837f712b3c3e13363c3310e4 (diff)
downloaddash-d483fa794db46b4e09708b8c98b93d53bee6ed64.tar.gz
man: Document jobs builtin
Link: https://bugs.debian.org/558607 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--src/dash.114
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dash.1 b/src/dash.1
index 1683d43..6a9f673 100644
--- a/src/dash.1
+++ b/src/dash.1
@@ -1467,6 +1467,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.