From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 26 05:26:45 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6525A106568F; Wed, 26 Aug 2009 05:26:45 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp5.server.rpi.edu (smtp5.server.rpi.edu [128.113.2.225]) by mx1.freebsd.org (Postfix) with ESMTP id 2C8DB8FC21; Wed, 26 Aug 2009 05:26:44 +0000 (UTC) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp5.server.rpi.edu (8.13.1/8.13.1) with ESMTP id n7Q4Dc46031796; Wed, 26 Aug 2009 00:13:39 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <4A94325D.6070201@FreeBSD.org> References: <20090825034054.2d57e733@dev.lan.Awfulhak.org> <4A94325D.6070201@FreeBSD.org> Date: Wed, 26 Aug 2009 00:13:37 -0400 To: Doug Barton , Brian Somers From: Garance A Drosehn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Bayes-Prob: 0.0001 (Score 0) X-RPI-SA-Score: 0.10 () [Hold at 20.00] COMBINED_FROM X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.225 Cc: freebsd-hackers@FreeBSD.org, Ivan Radovanovic Subject: Re: Deprecating ps(1)s -w switch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 05:26:45 -0000 At 11:50 AM -0700 8/25/09, Doug Barton wrote: >Brian Somers wrote: >> I recently closed bin/137647 and had second thoughts after Ivan (the >> originator) challenged my reason for closing it. >> >> The suggestion is that ps's -w switch is a strange artifact that can >> be safely deprecated. ps goes to great lengths to implement width >> limitations, and any time I've seen people not using -ww has either >> been a mistake or doesn't matter. Using 'cut -c1-N' is also a great >> way of limiting widths if people really want that... >> >> I'd like to propose changing ps so that width limits are removed and >> '-w' is deprecated - ignored for now with a note in the man page >> saying that it will be removed in a future release. >> >> Does anyone have any objections to doing this? I don't propose >> merging this back into stable/8. > >Short version, yes, I object to changing the defaults. Speaking as someone who has worked on 'ps' in the past, I recommend that you go slow in making arbitrary changes. 'ps' is already a minefield of craziness between various versions of unix, and adding this new variant will just make matters worse. You certainly can not go back to older releases and change the formatting there, so all programmers who write for a variety of machines/platforms will just end up with one extra way for things to break. -- Garance Alistair Drosehn = drosehn@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA