Bug 10973 - grep -o option is buggy in conjunction with anchors
Summary: grep -o option is buggy in conjunction with anchors
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: grep (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-01 18:17 MSK by at@altlinux.org
Modified: 2010-09-20 21:48 MSD (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description at@altlinux.org 2007-03-01 18:17:43 MSK
$ echo asdf |grep -o '^..'
as
df
$

Expected result:
as
Comment 1 Dmitry V. Levin 2007-04-15 01:00:06 MSD
grep.c prline() only_matching algorithm is clearly broken wrt anchors.
Comment 2 Dmitry V. Levin 2010-09-20 21:48:10 MSD
In grep-2.6.3-alt1 the bug is already fixed.