From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 6 01:56:31 2010 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 AF9C3106566C; Sun, 6 Jun 2010 01:56:31 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 6B0538FC14; Sun, 6 Jun 2010 01:56:31 +0000 (UTC) Received: from mobileKamikaze.norad (HSI-KBW-078-042-098-160.hsi3.kabel-badenwuerttemberg.de [78.42.98.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 36B4B8A1EEB; Sun, 6 Jun 2010 03:56:29 +0200 (CEST) Message-ID: <4C0B004D.9090706@bsdforen.de> Date: Sun, 06 Jun 2010 03:56:29 +0200 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-GB; rv:1.9.1.9) Gecko/20100331 Thunderbird/3.0.4 MIME-Version: 1.0 To: Bakul Shah References: <20100605201242.C79345B52@mail.bitblocks.com> <4C0AB448.2040104@FreeBSD.org> <20100605204845.6E56B5B52@mail.bitblocks.com> <4C0ABB58.6030009@FreeBSD.org> <20100605213731.816035B30@mail.bitblocks.com> In-Reply-To: <20100605213731.816035B30@mail.bitblocks.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Doug Barton Subject: Re: head behaviour 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: Sun, 06 Jun 2010 01:56:31 -0000 On 05/06/2010 23:37, Bakul Shah wrote: > On Sat, 05 Jun 2010 14:02:16 PDT Doug Barton wrote: > It would be less surprising and more useful if > > $ ps | (head -1; grep ssh) > > showed > > PID TT STAT TIME COMMAND > > > The change in head behaviour I am suggesting wouldn't break > anything that already works but make it more useful for what > you call 'wacky commands lines'! I know this is besides the point you want to make, but I just cannot resist: # ps x | sed -e 1P -e '/ssh/\!d' -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?