[PATCH] grep -F/fgrep support for -i

Denys Vlasenko vda.linux at googlemail.com
Fri Apr 30 07:33:51 UTC 2010


On Wednesday 28 April 2010 23:56, Ian Wienand wrote:
> Hi,
> 
>  From my reading of POSIX, grep -F should probably support -i
> 
> ---
> -F Match using fixed strings. Treat each pattern specified as a string
>     instead of a regular expression.
> 
> -i Perform pattern matching in searches without regard to case
> ---
> 
> -i doesn't really say it does *not* apply to non-regex patterns.  Most
>   (all?) other greps also seem to respect the -i
> 
> Below is a little patch with a simple test-case that fixes it for me.

Does not apply to current git.

There is strcasestr() (GNU extension, but uclibc provides it too).

Applied to git after editing. Thanks.
--
vda


More information about the busybox mailing list