From owner-freebsd-current@FreeBSD.ORG Wed Apr 12 19:31:58 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FA3B16A402; Wed, 12 Apr 2006 19:31:58 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6476E43D5E; Wed, 12 Apr 2006 19:31:57 +0000 (GMT) (envelope-from flz@FreeBSD.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 376CA11974; Wed, 12 Apr 2006 21:31:56 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 40912-09; Wed, 12 Apr 2006 21:31:48 +0200 (CEST) Received: from [192.168.2.3] (unknown [193.120.13.131]) by smtp.xbsd.org (Postfix) with ESMTP id 8F4A111926; Wed, 12 Apr 2006 21:31:47 +0200 (CEST) From: Florent Thoumie To: Garance A Drosehn In-Reply-To: References: <6eb82e0604112027q557fa36bw692f147913112997@mail.gmail.com> <200604121041.37870.jhb@freebsd.org> <20060412151816.GE28966@odin.ac.hmc.edu> <1144855989.53943.46.camel@mayday.esat.net> <20060412174630.GC21175@odin.ac.hmc.edu> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-s595PM4pCtoZTI9ST9dG" Date: Wed, 12 Apr 2006 20:31:26 +0200 Message-Id: <1144866686.794.10.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: freebsd-current@FreeBSD.org, Rong-En Fan , John Baldwin Subject: Re: tail, tr: not found when booting X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 19:31:58 -0000 --=-s595PM4pCtoZTI9ST9dG Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2006-04-12 at 15:20 -0400, Garance A Drosehn wrote: > > > > > > > > You can't do anything with /usr this early. This needs > > > > to be moved to _find_processes() where it's actually used. > > > > I suspect it should also be converted to pure shell code. > > > > I think this would work: > > > > > > > > for ent in `ps -p $$ -o jid`; do > >> > JID=3D$ent > > > > done >=20 > You might want to change this to: >=20 > for ent in `ps -p $$ -o jid=3D`; do > JID=3D$ent > done >=20 > (adding '=3D' on 'jid', to get rid of the column header) You don't need the loop if you use the '=3D', as someone told me via private mail. --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --=-s595PM4pCtoZTI9ST9dG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBEPUd+MxEkbVFH3PQRAhISAJ9NbV33OO5TXMZ9ssbpB+uAODSJGwCeK1Rx SaCOfUNBKopfo9HW3C+w3gw= =ktkU -----END PGP SIGNATURE----- --=-s595PM4pCtoZTI9ST9dG--