On 01-Nov-2007, at 19:16, A. Pagaltzis wrote:
Well find will get on your case if you mix paths and predicates anyway.
Yes, they could have just had one token to say "that's the last file, the rest is an expression". That would also have worked.
So they should have done what sed and awk do and made expression a string passed either as first parameter or as an argument to the an -e switch.
That leads to quoting hell, which find is trying to avoid. Also, find predates sed and I think awk as well.
Because find is a little language every bit as much as sed, if not awk. It just quite doesn't want to think of itself that way.
It thinks of itself that way just fine. It's not responsible for what other people think it is.