buggrep - Bugs: bug #26493, Specifying -i and -o together does...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #26493: Specifying -i and -o together does not work as expected

Submitted by:  Victor Shih <vshih>
Submitted on:  Fri 08 May 2009 02:49:12 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 04 Dec 2009 11:27:42 AM UTC, comment #4:

Duplicate of 27196.

Paolo Bonzini <bonzini>
Sat 09 May 2009 03:49:57 AM UTC, comment #3:

Agreed, looks like it works in 2.5.4.

Victor Shih <vshih>
Fri 08 May 2009 03:26:12 PM UTC, comment #2:

This issue isn't reproduced with grep-2.5.4.
Try to use grep-2.5.4.

$ grep --version
GNU grep 2.5.4

Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ grep -oi te in.text
te
TE

Norihirio Tanaka <noritnk>
Fri 08 May 2009 02:51:18 AM UTC, comment #1:

This is grep (GNU grep) 2.5.1 - Mac OS X 10.5.6

Victor Shih <vshih>
Fri 08 May 2009 02:49:12 AM UTC, original submission:

Given the file in.txt:
test
TEST

$ grep -o te in.txt
te

$ grep -i te in.txt
test
TEST

$ grep -oi te in.txt
te

Whereas I was expecting
te
TE

Am I expecting too much?

Victor Shih <vshih>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bonzini (Posted a comment)
  • -unavailable- added by noritnk (Posted a comment)
  • -unavailable- added by vshih (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 04 Dec 2009 11:27:42 AM UTCbonziniOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1