From owner-freebsd-arch@freebsd.org Wed Feb 21 19:51:01 2018 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D9D4CF24860 for ; Wed, 21 Feb 2018 19:51:01 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 73B996EDB2 for ; Wed, 21 Feb 2018 19:51:01 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: by mailman.ysv.freebsd.org (Postfix) id 3841AF2485B; Wed, 21 Feb 2018 19:51:01 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24617F24856 for ; Wed, 21 Feb 2018 19:51:01 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp10.server.rpi.edu (gateway.canit.rpi.edu [128.113.2.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "canit.localdomain", Issuer "canit.localdomain" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C099D6EDAF for ; Wed, 21 Feb 2018 19:51:00 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp-auth3.server.rpi.edu (smtp-auth3.server.rpi.edu [128.113.2.233]) by smtp10.server.rpi.edu (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w1LJjvbH015229 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2018 14:45:57 -0500 Received: from smtp-auth3.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth3.server.rpi.edu (Postfix) with ESMTP id 1624058018; Wed, 21 Feb 2018 14:45:57 -0500 (EST) Received: from [172.16.67.1] (gilead-qc124.netel.rpi.edu [128.113.124.17]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drosih) by smtp-auth3.server.rpi.edu (Postfix) with ESMTPSA id 0A6C958013; Wed, 21 Feb 2018 14:45:56 -0500 (EST) From: "Garance A Drosehn" To: "Mike Karels" Cc: arch@freebsd.org Subject: Re: ps output line length change Date: Wed, 21 Feb 2018 14:45:55 -0500 X-Mailer: MailMate (1.10r5443) Message-ID: <2280A28D-A54B-417B-B72D-38EE2F4EE521@rpi.edu> In-Reply-To: <201802170046.w1H0kvxN032252@mail.karels.net> References: <201802170046.w1H0kvxN032252@mail.karels.net> MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP X-Bayes-Prob: 0.0001 (Score 0, tokens from: outgoing, @@RPTN) X-Spam-Score: 0.00 () [Hold at 10.10] X-CanIt-Incident-Id: 03VdvJVwf X-CanIt-Geo: ip=128.113.124.17; country=US; region=New York; city=Troy; latitude=42.7495; longitude=-73.5951; http://maps.google.com/maps?q=42.7495,-73.5951&z=6 X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.230 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Feb 2018 19:51:02 -0000 On 16 Feb 2018, at 19:46, Mike Karels wrote: > A couple of weeks ago, I sent email on the committers list proposing > reversion of r314685 changing the output line length for ps. In > particular, it uses unlimited line length if stdout is not a tty. > The previous code used the tty width if any of stdout, stderr, or > stdin was a tty. The change in r314685 has not been shipped in > any release yet. > > The responses to that email all agreed with reversion. However, > there has been some additional discussion in private email. > Therefore, I am sending this to arch@. I've lost track of how many times I've said this, but I'll say it one more: I think the change should be reverted. What the code currently does is fine, and is flexible enough. I've written many scripts which parse the output of 'ps', and the historical behavior has never hampered me. And I do write scripts which have to run on multiple unixes (in fact, most of my work is done on systems which are not running FreeBSD). -- Garance Alistair Drosehn = drosih@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA