[PATCH 1/1] grep: fix grep -x to not set REG_NOSUB

Denys Vlasenko vda.linux at googlemail.com
Thu May 16 12:48:46 UTC 2013


On Tue, May 7, 2013 at 1:32 PM, James Hogan <james.hogan at 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 at imgtec.com>
> Cc: Natanael Copa <ncopa at alpinelinux.org>
> Cc: Denys Vlasenko <vda.linux at googlemail.com>

Applied, thanks!


More information about the busybox mailing list