NetBSD-Bugs archive

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

bin/43896: grep -o match problem

>Number:         43896
>Category:       bin
>Synopsis:       grep -o match problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 22 15:55:00 +0000 2010
>Originator:     Peter Kerwien
>Release:        NetBSD 5.99.39 (amd64)
NetBSD pc3 5.99.39 NetBSD 5.99.39 (GENERIC) #1: Wed Sep 22 05:57:37 UTC 2010  
root@pc3:/usr/obj/sys/arch/amd64/compile/GENERIC amd64

The following command fails to match properly:

echo VERSION=10 | grep -o '[0-9]*'

The result is empty. The correct result should be 10.

See description.

Home | Main Index | Thread Index | Old Index