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

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Fri, 2 Nov 2018 15:47:27 +0100

> > Why 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, "(");
>
> ?

No, I just left an operator there when rewriting the chain, here's the
corrected one:

return strcmp(arg, "-") || strcmp(arg, "!") && strcmp(arg, "(");
Received on Fri Nov 02 2018 - 15:47:27 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 02 2018 - 15:48:09 CET