bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: egrep and [^/]+


From: Bernhard Rosenkraenzer
Subject: Re: egrep and [^/]+
Date: Thu, 9 Aug 2007 11:49:59 +0200
User-agent: KMail/1.9.7

Hi,

On Wednesday 08 August 2007, David Watzke wrote:
> I'd say that this command should output "sys-apps/hwinfo", but it only
> exits with 1.
>
> echo /overlay/sys-apps/hwinfo | egrep -o '[^/]+/[^/]+$'
>
> grep -P works as expected. I'm using grep version 2.5.3.

This must be related to system libraries...

address@hidden ~]$ echo /overlay/sys-apps/hwinfo | 
egrep -o '[^/]+/[^/]+$'
sys-apps/hwinfo
address@hidden ~]$ echo $?
0
address@hidden ~]$ egrep --version
GNU grep 2.5.3

This is on Ark Linux (glibc 2.6.1, built with gcc 4.2.1).

What OS/libc does it fail on?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]