[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Possible bug in grep
From: |
Adam Richard |
Subject: |
Possible bug in grep |
Date: |
Fri, 30 Apr 2004 10:30:44 -0300 |
User-agent: |
Internet Messaging Program (IMP) 3.2.2 |
When I run the following command:
echo "FROM" | grep -io 'from.*$'
I expect it to print the word "FROM". But it doesn't print anything. However,
if I
change "FROM" to "from", it works. So it seems like the -i flag isn't working.
Removing the -o also makes it work, so maybe it's a combination of the 2
options.
If this isn't a bug, could you please explain to me why the behavior isn't what
I
expect?
I tried this with grep 2.5 and 2.5.1. I am using Linux 2.4.21-0.13mdk with
Mandrake
9.1. I ran the command from bash 2.05b.0(1)-release.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Possible bug in grep,
Adam Richard <=