[Patch] jobs -p

Ed Schouten ed at fxq.nl
Sat Jul 8 12:56:32 UTC 2006


While taking a look at the FreeBSD POSIX 2001 Utility Compliance
page[1], I saw that the jobs utility in /bin/sh doesn't support the -p
flag, therefore not POSIX compliant.

I wrote a small patch[2] that adds the -p flag to the jobs utility, by
limiting the output to one process and running getpgid() on the pid.

According to various sources, getpgid() returns the process group ID,
which is also the process group leader. Can anyone confirm this?

 Ed Schouten <ed at fxq.nl>
 WWW: http://g-rave.nl/

[1] http://people.freebsd.org/~schweikh/posix-utilities.html
[2] http://g-rave.nl/junk/freebsd-sh-jobs-posix.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-standards/attachments/20060708/c0e62336/attachment.pgp

More information about the freebsd-standards mailing list