[PATCH] grep: properly handle grep -w "^str"

Bartosz Gołaszewski bartekgola at gmail.com
Fri Feb 7 13:59:28 UTC 2014


2014-02-07 walter harms <wharms at bfs.de>:
> Hi Bartosz Golaszewski
>
> I do not like those !ENABLE_EXTRA_COMPAT
> since the human brain makes a lot of problems with reverse logic.
> would you mind to change that here ?
>
>
> re,
>  wh

Hi Walter,

not all of them can be changed e.g.:

#if !ENABLE_EXTRA_COMPAT
    if (!(option_mask32 & (OPT_o | OPT_w | OPT_x)))
        reflags = REG_NOSUB;
#endif

has no '#else' and thus has to stay this way. I'll leave it up to
Denys to decide - for me it's purely cosmetic and not an issue.

Best regards,
Bartosz Golaszewski


More information about the busybox mailing list