summaryrefslogtreecommitdiffstats
path: root/bin/sh/sh.1
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2006-10-07 16:51:16 +0000
committerstefanf <stefanf@FreeBSD.org>2006-10-07 16:51:16 +0000
commit7819e9ab69305b9516d6f50f05b04633464eebf2 (patch)
tree33f628da3a1045ce4d4696ace27d45c9bf566174 /bin/sh/sh.1
parentd315543cc46a8d7ef4390e4a3ca07b7985bb705f (diff)
downloadFreeBSD-src-7819e9ab69305b9516d6f50f05b04633464eebf2.zip
FreeBSD-src-7819e9ab69305b9516d6f50f05b04633464eebf2.tar.gz
Add the POSIX option -p to the jobs builtin command. It prints the PID of the
process leader for each job. Now the last specified option for the output format (-l, -p or -s) wins, previously -s trumped -l. PR: 99926 Submitted by: Ed Schouten and novel (patches modified by me)
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r--bin/sh/sh.111
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index aebdb78..75d243c 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -32,7 +32,7 @@
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
.\" $FreeBSD$
.\"
-.Dd July 29, 2006
+.Dd October 7, 2006
.Dt SH 1
.Os
.Sh NAME
@@ -1777,7 +1777,7 @@ Print the process id's of the processes in the specified
If the
.Ar job
argument is omitted, use the current job.
-.It Ic jobs Oo Fl ls Oc Op Ar job ...
+.It Ic jobs Oo Fl lps Oc Op Ar job ...
Print information about the specified jobs, or all jobs if no
.Ar job
argument is given.
@@ -1787,8 +1787,13 @@ If the
.Fl l
option is specified, the PID of each job is also printed.
If the
+.Fl p
+option is specified, only the process IDs for the process group leaders
+are printed, one per line.
+If the
.Fl s
-option is specified, only the PIDs of the jobs are printed, one per line.
+option is specified, only the PIDs of the job commands are printed, one per
+line.
.It Ic local Oo Ar variable ... Oc Op Fl
See the
.Sx Functions
OpenPOWER on IntegriCloud