Re: [dev] [PATCH 1/2] find: "-" by itself is a file name

2018-11-02 Thread Tavian Barnes
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

Re: [dev] [PATCH 1/2] find: "-" by itself is a file name

2018-11-02 Thread 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

Re: [dev] [sbase] Bugs in find

2018-09-27 Thread 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

[dev] [sbase] Bugs in find

2018-09-26 Thread Tavian Barnes
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