Date: Mon, 7 Jun 2010 15:59:00 -0700 From: Brian Somers <brian@FreeBSD.org> To: Dag-Erling =?UTF-8?B?U23DuHJncmF2?= <des@des.no> Cc: freebsd-hackers@FreeBSD.org, Barton <dougb@FreeBSD.org>, Rob Warnock <rpw3@rpw3.org>, Doug Subject: Re: head behaviour 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 07 Jun 2010 13:05:48 +0200, Dag-Erling Sm=C3=B8rgrav <des@des.no> w= rote: > Bakul Shah <bakul@bitblocks.com> 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 <brian@Awfulhak.org> Don't _EVER_ lose your sense of humour ! <brian@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100607155900.76080dca>