Module Name: src
Committed By: kre
Date: Sun Oct 30 01:19:08 UTC 2022
Modified Files:
src/bin/sh: sh.1
Log Message:
Note in the description of "jobs -p" that the process id returned is
also the process group identifier (that's a requirement from POSIX, and
is what we have always done - just not been explicit about in sh.1).
Add a note that this value and $! are not necessarily the same (currently,
and perhaps forever, never the same in a pipeline with 2 or more elements).
To generate a diff of this commit:
cvs rdiff -u -r1.250 -r1.251 src/bin/sh/sh.1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/sh.1
diff -u src/bin/sh/sh.1:1.250 src/bin/sh/sh.1:1.251
--- src/bin/sh/sh.1:1.250 Sun Sep 18 06:03:19 2022
+++ src/bin/sh/sh.1 Sun Oct 30 01:19:08 2022
@@ -1,4 +1,4 @@
-.\" $NetBSD: sh.1,v 1.250 2022/09/18 06:03:19 kre Exp $
+.\" $NetBSD: sh.1,v 1.251 2022/10/30 01:19:08 kre Exp $
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -3310,7 +3310,11 @@ status of each process, rather than the
With the
.Fl p
flag, the output contains only the process identifier of the lead
-process.
+process (which is also the process group identifier).
+Note that this is not necessarily the same process identifier as
+reported in the special parameter
+.Dv \&!
+when a background job is started.
.Pp
With the
.Fl Z