Date: Sat, 18 Aug 2001 14:19:40 +0100 From: Josef Karthauser <joe@tao.org.uk> To: Dag-Erling Smorgrav <des@ofug.org> Cc: freebsd-fs@FreeBSD.ORG Subject: Re: parsing problem with /proc/N/status Message-ID: <20010818141940.B877@tao.org.uk> In-Reply-To: <xzpofpecp20.fsf@flood.ping.uio.no>; from des@ofug.org on Sat, Aug 18, 2001 at 12:13:59AM %2B0200 References: <20010817102549.A712@tao.org.uk> <xzpofpecp20.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Sat, Aug 18, 2001 at 12:13:59AM +0200, Dag-Erling Smorgrav wrote: > 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjt+a2sACgkQXVIcjOaxUBaxegCcCuAKNkGksTMYMQC5UY3nL27Y 0tUAoOSus2dUkcCUhux4tq5cDFnPDdwK =mhmt -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010818141940.B877>
