From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 7 23:14:08 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 BED181065678; Mon, 7 Jun 2010 23:14:08 +0000 (UTC) (envelope-from prvs=1767699700=brian@FreeBSD.org) Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9]) by mx1.freebsd.org (Postfix) with ESMTP id 74BB08FC0A; Mon, 7 Jun 2010 23:14:08 +0000 (UTC) Received: from pd5ml2no-ssvc.prod.shaw.ca ([10.0.153.164]) by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 07 Jun 2010 16:59:06 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=1 a=2caWB_DcjroA:10 a=VphdPIyG4kEA:10 a=ORa4HqFjfvEA:10 a=IkcTkHD0fZMA:10 a=MJPcHhXccCG8eBs0us8XwA==:17 a=mpmaN9d1AAAA:8 a=MMwg4So0AAAA:8 a=6I5d2MoRAAAA:8 a=Hue02uaqDtnA88f1WkUA:9 a=59bl0h-LIdcIDY4r8Pt48I7mqrcA:4 a=QEXdDO2ut3YA:10 a=9klllKCzMBAA:10 a=WJ3hkfHDukgA:10 a=SV7veod9ZcQA:10 Received: from unknown (HELO store.lan.Awfulhak.org) ([70.79.162.198]) by pd5ml2no-dmz.prod.shaw.ca with ESMTP; 07 Jun 2010 16:59:05 -0600 Received: from store.lan.Awfulhak.org (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 450BAC433AF_C0D79B9B; Mon, 7 Jun 2010 22:59:05 +0000 (GMT) Received: from gw.Awfulhak.org (gw.lan.Awfulhak.org [172.16.0.1]) by store.lan.Awfulhak.org (Sophos Email Appliance) with ESMTP id D5210C460F6_C0D79B0F; Mon, 7 Jun 2010 22:58:56 +0000 (GMT) Received: from localhost (brian@gw.lan.Awfulhak.org [172.16.0.1]) by gw.Awfulhak.org (8.14.4/8.14.4) with ESMTP id o57MwtJw030260; Mon, 7 Jun 2010 15:58:56 -0700 (PDT) (envelope-from brian@FreeBSD.org) Date: Mon, 7 Jun 2010 15:59:00 -0700 From: Brian Somers To: Dag-Erling =?UTF-8?B?U23DuHJncmF2?= Message-ID: <20100607155900.76080dca@Awfulhak.org> In-Reply-To: <86631vksqb.fsf@ds4.des.no> References: <20100605201242.C79345B52@mail.bitblocks.com> <4C0AB448.2040104@FreeBSD.org> <86r5kk6xju.fsf@ds4.des.no> <4C0C1A0B.4090409@FreeBSD.org> <86d3w3yflj.fsf@ds4.des.no> <20100607000607.97C6F5B5A@mail.bitblocks.com> <86631vksqb.fsf@ds4.des.no> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@FreeBSD.org, Barton , Rob Warnock , Doug 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: Mon, 07 Jun 2010 23:14:08 -0000 On Mon, 07 Jun 2010 13:05:48 +0200, Dag-Erling Sm=C3=B8rgrav w= rote: > Bakul Shah writes: > > Except read doesn't do it quite right: > > > > $ ps | (read a; echo $a ; grep zsh) > > PID TT STAT TIME COMMAND >=20 > yeah, I forgot that it drops leading whitespace... Well, leading $IFS $ ps | (IFS=3D read a; echo "$a"; grep zsh) works a lot better. --=20 Brian Somers Don't _EVER_ lose your sense of humour !