From owner-freebsd-arch@FreeBSD.ORG Sun Mar 28 08:47:24 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7713616A4CE; Sun, 28 Mar 2004 08:47:24 -0800 (PST) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8930B43D48; Sun, 28 Mar 2004 08:47:23 -0800 (PST) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])i2SGlIJ12693; Sun, 28 Mar 2004 18:47:18 +0200 (MEST) Date: Sun, 28 Mar 2004 18:47:18 +0200 (CEST) From: Harti Brandt To: Stephen McKay In-Reply-To: <200403280808.i2S88aJ7016011@dungeon.home> Message-ID: <20040328184244.I10175@beagle.fokus.fraunhofer.de> References: <20040325070120.GA67497@VARK.homeunix.com> <200403280808.i2S88aJ7016011@dungeon.home> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: "Jacques A. Vidrine" cc: arch@freebsd.org cc: Garance A Drosihn cc: Albert Cahalan Subject: Re: posix ps (was Re: Adding `pgrep' and `pkill' to /usr/bin) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 16:47:24 -0000 On Sun, 28 Mar 2004, Stephen McKay wrote: SM>On Saturday, 27th March 2004, Garance A Drosihn wrote: SM> SM>>>$ PERSONALITY=freebsd ps -? SM>> SM>>Secondly, I personally am not fond of commands which COMPLETELY SM>>change their behavior based on environment variables. Different SM>>options, different formats, different rules. SM> SM>Unifying ps on all Unices (including FreeBSD) is an excellent idea, and SM>I fully support this. SM> SM>Using an environment variable (no matter what name is used) to switch SM>between radically different personalities is an appalling idea. No script SM>can depend on the output of ps thereafter. Well, that is just like LANG or LC_ALL. You cannot depend on parsing utility output until you set LC_ALL=C, yet I have still to see a script that does this. If you happen to write a script for BSD syntax just put LC_ALL=C PERSONALITY=BSD on top of it. SM>If multiple personalities is a desirable trait (and it's not clear that it SM>is) then command line switches and aliases are the correct mechanisms to SM>use. That would require to add that switch to all utility calls in a script that have multiple personalities. Thats far from beeing desirable. harti