Package: grep
Version: 2.6.3-3
Severity: important

hi,

i notice grep behaving differently on x86 vs. amd64:

on x86, grep works correctly:
> raoul@raoul ~ $ echo '1303141571.M26770P15859.m01S=1884W=1934:2S' | egrep 
> '[a-z]$'
^ no match because there is no [a-z] at the end of the line!
> raoul@raoul ~ $ egrep --version
> GNU grep 2.6.3
> 
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> 
> raoul@raoul ~ $ uname -a
> Linux raoul.bhatia.at 2.6.32-5-vserver-amd64 #1 SMP Mon Mar 7 23:14:47 UTC 
> 2011 x86_64 GNU/Linux
> raoul@raoul ~ $ cat /etc/debian_version 
> 6.0.1


on amd64, grep does not correctly wrong:
> root@m01 ~ # echo '1303141571.M26770P15859.m01S=1884W=1934:2S' | egrep 
> '[a-z]$'
> 1303141571.M26770P15859.m01S=1884W=1934:2S
^ this does not match the pattern!
> root@m01 ~ # egrep --version
> GNU grep 2.6.3
> 
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> 
> root@m01 ~ # uname -a
> Linux m01 2.6.32-5-amd64 #1 SMP Sat Oct 30 14:18:21 UTC 2010 x86_64 GNU/Linux
> root@m01 ~ # cat /etc/debian_version 
> 6.0.1



grep 2.5.3 on debian 5.0.8 (lenny) does not show this behavior:
> root@db01 ~ # echo '1303141571.M26770P15859.m01S=1884W=1934:2S' | egrep 
> '[a-z]$'
> root@db01 ~ # egrep --version
> GNU grep 2.5.3
> 
> Copyright (C) 1988, 1992-2002, 2004, 2005  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> root@db01 ~ # uname -a
> Linux db01.neuroninteractive.com 2.6.26-2-amd64 #1 SMP Thu Sep 16 15:56:38 
> UTC 2010 x86_64 GNU/Linux
> root@db01 ~ # cat /etc/debian_version
> 5.0.8

cheers,
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bha...@ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG          web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            off...@ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to