-exec on find(1) broken

Václav Haisman V.Haisman@sh.cvut.cz
Tue Oct 9 06:21:00 GMT 2007



Paul McFerrin wrote, On 9.10.2007 8:09:
> I think I'm going nuts.  What am I doing wrong?  Can't seem to get -exec
> to work.
> 
>    /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo \{\;\} | more
>    find: missing argument to `-exec'
>    /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo \{\} | more   
> find: missing argument to `-exec'
>    /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo '\;' | more
>    find: missing argument to `-exec'
>    /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo \{;\} | more
>    find: missing argument to `-exec'
>    /i/mp3.$ find . -type f -mtime +18 -exec echo '\;' | more
>    find: missing argument to `-exec'
Try and compare the output of command echo ';' and command echo '\;' and
compare the output. You want to use ';' to terminate the -exec argument list.

> 
> There is NO missing argument to -exec.  What gives?  Is it really broken
> or do I not understand the manual page correctly?
> 
> - paul mcferrin
> 

--
VH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20071009/d45412a2/attachment.sig>


More information about the Cygwin mailing list