Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2008 18:46:09 +0200
From:      Jonathan McKeown <jonathan+freebsd-hackers@hst.org.za>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Extending find(1) to support -printf
Message-ID:  <200809051846.09516.jonathan%2Bfreebsd-hackers@hst.org.za>
In-Reply-To: <20080905143915.GA60002@icarus.home.lan>
References:  <20080905101253.GA53396@icarus.home.lan> <20080905143915.GA60002@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 05 September 2008 16:39, Jeremy Chadwick wrote:

> Equally as frustrating, mutt's backtick support will only honour the
> first line of input.  If a backticked command returns multiple lines,
> only the first is read; the rest are ignored.  This makes using BSD find
> annoying, since find always outputs results terminated with a newline.
> One of my peers uses find | perl -ne 'chomp; print "=", $_, " "' to deal
> with this limit, which is quite disgusting.

It is, especially when you consider find ... | xargs (or find ... -print0 | 
xargs -0 if your filenames might cause problems (embedded spaces etc)).

Jonathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809051846.09516.jonathan%2Bfreebsd-hackers>