GNU bug report logs - #18446
A bracket expression with \- not work. grep v 2.14

Previous Next

Package: grep;

Reported by: nezhevenko <nezhevenko <at> protei.ru>

Date: Wed, 10 Sep 2014 15:45:04 UTC

Severity: normal

Tags: notabug

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

Bug is archived. No further changes may be made.

Full log


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

From: nezhevenko <nezhevenko <at> protei.ru>
To: bug-grep <at> gnu.org
Subject: A bracket expression with \- not work. grep v 2.14
Date: Wed, 10 Sep 2014 19:23:29 +0400
[Message part 1 (text/plain, inline)]
Hello!

I know - egrep v 2.14 is not a last version, but i have no time to 
verify in new version :)

Regexp [A\-Z] not work as 'A' or '-' or 'Z'
That finded all letters:

Example:
nezhevenko <at> nezhevenko:~> echo 'd' | grep -E '[A\-Z]'
d
nezhevenko <at> nezhevenko:~> egrep -V
egrep (GNU grep) 2.14
...

-- 
Nezhevenko Nickolay,
Quality Assurance,
Protei LTD,
Saint-Petersburg, Russia.

[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 254 days ago.

Previous Next


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