Re: Extending find(1) to support -printf

2008-09-13 Thread Ulrich Spoerlein
Pretty late to the game, but ... On Mon, 08.09.2008 at 15:47:20 +0200, Oliver Fromme wrote: > 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 re

Re: Extending find(1) to support -printf

2008-09-08 Thread Oliver Fromme
Jeremy Chadwick wrote: > On Fri, Sep 05, 2008 at 03:12:53AM -0700, Jeremy Chadwick wrote: > > Also, some folks on #bsdports asked why I was bothering with this in the > > first place: mutt supports backticks to run shell commands inside of > > a muttrc file. See "Building a list of mailboxes o

Re: Extending find(1) to support -printf

2008-09-05 Thread Jonathan McKeown
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

Re: Extending find(1) to support -printf

2008-09-05 Thread Jeremy Chadwick
On Fri, Sep 05, 2008 at 03:12:53AM -0700, Jeremy Chadwick wrote: > Also, some folks on #bsdports asked why I was bothering with this in the > first place: mutt supports backticks to run shell commands inside of > a muttrc file. See "Building a list of mailboxes on the fly" below: > > http://wiki.

Extending find(1) to support -printf

2008-09-05 Thread Jeremy Chadwick
I've been working on $SUBJECT for the past few hours, and have managed to implement a very crude subset of GNU find's features: http://www.gnu.org/software/findutils/manual/html_node/find_html/Format-Directives.html#Format-Directives I've implemented %f and %p (which appear identical to GNU find)