[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] grep -F/fgrep support for -i
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2010-04-30 7:33:51
Message-ID: 201004300933.51407.vda.linux () googlemail ! com
[Download RAW message or body]

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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic