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... [EMAIL PROTECTED] ~]$ echo /overlay/sys-apps/hwinfo | egrep -o '[^/]+/[^/]+$' sys-apps/hwinfo [EMAIL PROTECTED] ~]$ echo $? 0 [EMAIL PROTECTED] ~]$ 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?
