GNU bug report logs - #15773
grep-2.15 bug report

Previous Next

Package: grep;

Reported by: Mirraz Mirraz <mirraz1 <at> rambler.ru>

Date: Thu, 31 Oct 2013 18:09:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 15773 <at> debbugs.gnu.org (full text, mbox):

From: Aharon Robbins <arnold <at> skeeve.com>
To: mirraz1 <at> rambler.ru, jim <at> meyering.net
Cc: 15773 <at> debbugs.gnu.org
Subject: Re: bug#15773: grep-2.15 bug report
Date: Fri, 01 Nov 2013 09:53:01 +0200
Hello All.

> >>> After updating from 2.14 to 2.15 grep has started to fail to match patterns
> >>> that contain '\s*' or '\s\+'
>
> And here's a proper patch, including NEWS and test suite additions:

FWIW, I can't reproduce this in gawk (gawk-4.1-stable branch).

The program below correctly produces no output, with and without the fix
in dfa.c:lex. (I have added the fix anyway.)

Any ideas why?

Thanks,

Arnold
----------------------------------
BEGIN {
	pat["^\\s*$"] = pat["^\\s+$"] = pat["^\\s?$"] = pat["^\\s{1}$"] = 1
	for (i in pat) {
		if (" " !~ i) {
			printf("pattern \"%s\" failed!\n", i) > "/dev/stderr"
			exit 1
		}
	}
	exit 0
}




This bug report was last modified 11 years and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.