summaryrefslogtreecommitdiffstats
path: root/bin/sh/main.c
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/main.c
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/main.c')
-rw-r--r--bin/sh/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/main.c b/bin/sh/main.c
index a23efd0..e77ff4e 100644
--- a/bin/sh/main.c
+++ b/bin/sh/main.c
@@ -211,7 +211,7 @@ cmdloop(int top)
inter = 0;
if (iflag && top) {
inter++;
- showjobs(1, 0, 0);
+ showjobs(1, SHOWJOBS_DEFAULT);
chkmail(0);
flushout(&output);
}
OpenPOWER on IntegriCloud