From owner-freebsd-standards@FreeBSD.ORG Thu Apr 22 20:23:15 2004 Return-Path: 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 B009616A4CF for ; Thu, 22 Apr 2004 20:23:15 -0700 (PDT) Received: from smtp0.server.rpi.edu (smtp0.server.rpi.edu [128.113.53.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CE8D43D54 for ; Thu, 22 Apr 2004 20:23:15 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp0.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i3N3NDEd026572; Thu, 22 Apr 2004 23:23:13 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <01cb01c428d7$ea7592b0$7890a8c0@dyndns.org> References: <019601c426b0$77dc91a0$7890a8c0@dyndns.org> <1082504719.3444.534.camel@cube><00ba01c427f3$b3477f40$7890a8c0@dyndns.org > <20040422172401.GA88130@stack.nl> <01cb01c428d7$ea7592b0$7890a8c0@dyndns.org> Date: Thu, 22 Apr 2004 23:23:12 -0400 To: "Cyrille Lefevre" , "Jilles Tjoelker" From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) cc: freebsd-standards@freebsd.org cc: Albert Cahalan Subject: Re: ps enhencements (posix syntax, and more) X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2004 03:23:15 -0000 At 4:07 AM +0200 4/23/04, Cyrille Lefevre wrote: > > > > Format string which contains both an equal sign and a comma > > > are considered to be comma only separated list. so, both > > > -o "pid=process id,ppid=parent pid,command=command line" and > > > -o "pid=child ppid=parent command=command" are well parsed, >> > unfortunately, mixing "user=user name,pid=pid command" isn't... >> > > Hmm, FreeBSD 5.x follows the spec exactly in this respect, > > an equal sign marks the rest of the argument as header > > text, so I doubt whether it's worth doing this. Note that > > FreeBSD 4.x aborts header texts at a comma or space. > >any other opinion ? "In my opinion": Each variable has a default header. The default header can be overridden by appending an equals sign and the new text of the header. The rest of the characters in the argument shall be used as the header text. That is a quote from SUSv3. I believe 5.x presently tries to follow that, and that is what I think it should do. As to 4.x, the only reason 4.x still behaves the way it does is that I avoided MFC-ing any commits which would *alter* the behavior of how something worked in `ps'. The only things I MFC-ed were commits that cleaned up the code, or which added new features. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu