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

List:       busybox
Subject:    Re: [PATCH 1/1] grep: fix grep -x to not set REG_NOSUB
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2013-05-16 12:48:46
Message-ID: CAK1hOcNncLDsdzFoT2BYCz3J4cGw9f60yZZnH-Wdn5Ofo6VphA () mail ! gmail ! com
[Download RAW message or body]

On Tue, May 7, 2013 at 1:32 PM, James Hogan <james.hogan@imgtec.com> wrote:
> When -F isn't specified (and !ENABLE_EXTRA_COMPAT), grep -x uses
> regexec's regmatch_t output to determine if the match was the entire
> line. However it also set the REG_NOSUB flag which makes it ignore the
> regmatch_t argument.
>
> Add an exception to the setting of REG_NOSUB for OPT_x and add some test
> cases to test the behaviour of -x.
>
> Signed-off-by: James Hogan <james.hogan@imgtec.com>
> Cc: Natanael Copa <ncopa@alpinelinux.org>
> Cc: Denys Vlasenko <vda.linux@googlemail.com>

Applied, thanks!
_______________________________________________
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