[Bug 329992] New: Invalid behavior of grep with regexp ^[A-Z]
https://bugzilla.novell.com/show_bug.cgi?id=329992 Summary: Invalid behavior of grep with regexp ^[A-Z] Product: openSUSE 10.2 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dido@quipo.it QAContact: qa@suse.de Found By: --- Grep, as included in the mainstream distribution, doesn't behave as expected when using the regexp ^[A-Z]. The following command: $ echo pippo | grep --color=auto ^[A-Z]; echo $? has the following unexpected output: pippo 0 That is: grep returns 0 as if it found the expression, but no part of the output is colored. If you run it on a capitalized string, it behaves correctly: $ echo Pippo | grep --color=auto ^[A-Z]; echo $? Pippo 0 In this case, the capital "P" is colored. grep -e behaves the same way. Please note that this is not OpenSUSE's problem only. I already reported this in Gentoo's bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=193043 Finally, this is the grep I'm using. Again, it's the one I got from YaST. $ grep --version grep (GNU grep) 2.5.1 Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc. Dies ist freie Software; in den Quellen befinden sich die Lizenzbedingungen. Es gibt KEINERLEI Garantie; nicht einmal für die TAUGLICHKEIT oder VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=329992
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=329992
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=329992#c1
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=329992#c2
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=329992#c3
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=329992#c4
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=329992#c5
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=329992#c6
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=329992#c7
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=329992
Stefan Fent
https://bugzilla.novell.com/show_bug.cgi?id=329992
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=329992#c15
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=329992#c16
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=329992#c17
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=329992#c19
--- Comment #19 from Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=329992#c20
--- Comment #20 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=329992#c21
--- Comment #21 from Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=329992#c22
--- Comment #22 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=329992#c23
--- Comment #23 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=329992#c24
--- Comment #24 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=329992
Andreas Schwab
participants (1)
-
bugzilla_noreply@novell.com