From owner-freebsd-fs Sat Aug 18 6:19:48 2001 Delivered-To: freebsd-fs@freebsd.org Received: from tao.org.uk (genesis.tao.org.uk [212.135.162.62]) by hub.freebsd.org (Postfix) with ESMTP id E5CE937B40E for ; Sat, 18 Aug 2001 06:19:44 -0700 (PDT) (envelope-from joe@tao.org.uk) Received: by tao.org.uk (Postfix, from userid 100) id 00F214B; Sat, 18 Aug 2001 14:19:40 +0100 (BST) Date: Sat, 18 Aug 2001 14:19:40 +0100 From: Josef Karthauser To: Dag-Erling Smorgrav Cc: freebsd-fs@FreeBSD.ORG Subject: Re: parsing problem with /proc/N/status Message-ID: <20010818141940.B877@tao.org.uk> References: <20010817102549.A712@tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="s2ZSL+KKDSLx8OML" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Sat, Aug 18, 2001 at 12:13:59AM +0200 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --s2ZSL+KKDSLx8OML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 18, 2001 at 12:13:59AM +0200, Dag-Erling Smorgrav wrote: =20 > There is no good solution. The ideal fix would be to use NUL > characters instead of spaces to separate the fields (as is done for > cmdline), but that would (obviously) break backwards compatibility. > Replacing spaces with underscores like your patch does is a hack (and > only a partial hack at that - the process name might contain a > newline). If we have to go down that road, I'd rather just encode > whitespace and unprintables in octal notation (like ls -B does). Sounds fair. I don't particularly care, but as it stands it's next to useless as it's unparsable. Joe --s2ZSL+KKDSLx8OML Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjt+a2sACgkQXVIcjOaxUBaxegCcCuAKNkGksTMYMQC5UY3nL27Y 0tUAoOSus2dUkcCUhux4tq5cDFnPDdwK =mhmt -----END PGP SIGNATURE----- --s2ZSL+KKDSLx8OML-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message