grep 2.9 --include not working

Bug #1003742 reported by fracktal
24
This bug affects 7 people
Affects Status Importance Assigned to Milestone
grep (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu oneiric
Release: 11.10
Grep Version : 2.9-1

grep 2.9 --include not working.

it is fixed in grep 2.10.

ref:
http://savannah.gnu.org/bugs/?35698

fracktal (bloodgod)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grep (Ubuntu):
status: New → Confirmed
Revision history for this message
Margarita Manterola (marga-9) wrote :

The bug mentions it's fixed in 2.10 but that's not completely true, something was fixed, but not everything. Precise ships with 2.10-1 and it still has the bug:

mkdir /tmp/test && cd /tmp/test
echo 1 >1
echo 2 >2

marga@viserion:/tmp/test$ grep . *
1:1
2:2
marga@viserion:/tmp/test$ grep . * --include "1"
2:2
marga@viserion:/tmp/test$ grep . * --include "2"
1:1

The fix is most likely in:
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=58195fabc7559541b3736400e08e901011acd61f

This was reported and accepted as broken behaviour in:
http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html

Revision history for this message
Margarita Manterola (marga-9) wrote :

This bug is fixed in Quantal and later, but still broken in Precise.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.