[darcs-users] find -name

Trent W. Buck trentbuck at gmail.com
Sun Nov 9 12:48:22 UTC 2008


Matthias Kilian <kili at outback.escape.de> writes:

> On Sun, Nov 09, 2008 at 10:32:33PM +1100, Trent W. Buck wrote:
>> > find -name _darcs -prune -o \( -name \*.o -o -name \*.hi \) -exec rm -f {} +
>> > find: illegal option -- n
> [...]
>> Short answer is that -name isn't POSIX, or OS X isn't POSIX compliant.
>
> You always should specify a directory first, i.e.
>
> $ find . -name _darcs ...

Right, mea culpa.

Fixed in "darcs patch: Keep OS X happy by passing a path to find(1)."
...unless I messed up, I don't have an OS X handy to test with.



More information about the darcs-users mailing list