bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Small change in find


From: James Youngman
Subject: Re: Small change in find
Date: Tue, 10 May 2005 09:07:56 +0100
User-agent: Mutt/1.3.28i

On Mon, May 09, 2005 at 01:09:42PM -0400, Taliver Heath wrote:
> I haven't read any of the bugs/requests/etc, so please forgive me if
> this is a common request.  I have often thought that with the find
> command, the semicolon should be optional on a -exec or -ok command
> when it is the last command in the line.  For instance:
> 
> find /path -type f -exec ls -l '{}' 

The semicolon is required by the POSIX standard, of course.  I can
see why this is convenient, but won't it just lead people to write
scripts that don't work with other versions of find, or even with
older versions of GNU find?

> Also, I would be interest in addressing the '{}'-syntax, and expanding
> this to include the bash %,%%,#,## rules.

That's an interesting idea.  It's probably simpler though to make it
understand the format directives already used by -printf, which would
require a little refactoring.

James.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]