Package: grep
Version: 2.6.3-3
File: /bin/grep
Severity: important

Hi folks,

as far as I understand regular expressions, no output should be produced 
by the following four command lines.

$ echo "_c" | egrep '^_[A-Z]\+'
$ echo "_c" | egrep '^_[A-Z]+'
_c
$ echo "_c" | grep '^_[A-Z]\+'
_c
$ echo "_c" | grep '^_[A-Z]+'

Interestingly, if "_c" is substituted by "_a", the command lines will 
not produce any outputs. Under an older Debian lenny system (grep 
version 2.5.3~dfsg-6) the command lines show the expected behaviour for 
both "_a" and "_c".

$GREP_OPTIONS is not set on both systems.

Thanks in advance for your comments.

Cheers,
Christian

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grep depends on:
ii  dpkg                      1.15.8.10      Debian package management 
system
ii  install-info              4.13a.dfsg.1-6 Manage installed 
documentation in
ii  libc6                     2.11.2-10      Embedded GNU C Library: 
Shared lib

grep recommends no packages.

Versions of packages grep suggests:
ii  libpcre3                      8.02-1.1   Perl 5 Compatible Regular 
Expressi

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to