find . -iname '*.rar' -execdir ls {} +
this will not work under OSX Lion, yielding ls: blabla.rar: No such file or directory
etc..
Additionally, above will work under Linux. However, it will invoke ls as many times as it find result. Tested with simple cat $#
script.
So I see 2 problems with -execdir
- under Linux it will NOT combine search result as stated in manual when using
{} +
- under OSX it will NOT change directory as stated in manual, again using
{} +
Wanted to confirm that this is buggy and not my misunderstanding.