From owner-freebsd-standards@FreeBSD.ORG Sat Jul 8 12:56:32 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B613916A4E0 for ; Sat, 8 Jul 2006 12:56:32 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62AFE43D45 for ; Sat, 8 Jul 2006 12:56:30 +0000 (GMT) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id A250F17264; Sat, 8 Jul 2006 14:56:28 +0200 (CEST) Date: Sat, 8 Jul 2006 14:56:28 +0200 From: Ed Schouten To: FreeBSD Standards Message-ID: <20060708125628.GN83179@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8SdtHY/0P4yzaavF" Content-Disposition: inline User-Agent: Mutt/1.5.11 Subject: [Patch] jobs -p X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jul 2006 12:56:32 -0000 --8SdtHY/0P4yzaavF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, 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? Yours, --=20 Ed Schouten 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 --8SdtHY/0P4yzaavF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEr6t852SDGA2eCwURAg4IAJ4moQ4Bco5iFxz6cs2fPyHFVJ+WowCfX/3p tQ/vblOrJpcoVu2/YMpLDXk= =lpyF -----END PGP SIGNATURE----- --8SdtHY/0P4yzaavF--