not:
>
> return strcmp(arg, "-") || && strcmp(arg, "!") && strcmp(arg, "(");
Not sure what you're recommending here. Maybe
return (arg[0] != '-' || !strcmp(arg, "-")) && strcmp(arg, "!") &&
strcmp(arg, "(");
?
--
Tavian Barnes
tation is free to chose, then you can't expect
> compatibility there and shouldn't rely on that.
My interpretation of the linked thread was that "starts with" is
supposed to mean a strict prefix in POSIX, so "-" doesn't start with
"-". I haven't found anything in the standard that says that
explicitly though. If you'd rather interpret "starts with" to include
exact matches, feel free to drop this patch.
--
Tavian Barnes
On Thu, 27 Sep 2018 at 11:06, Evan Gates wrote:
> On Wed, Sep 26, 2018 at 5:49 PM Tavian Barnes
> wrote:
> >
> > Hi! As the author of a find-compatible tool, whenever I find another
> > find implementation I run my testsuite against it to see if I find any
> > b
ribed in
> chmod
chmod supports X, so find should too.
If you want to run these tests yourself, clone
https://github.com/tavianator/bfs and run
$ ./tests.sh --bfs=path/to/sbase/find --posix
--
Tavian Barnes