NetBSD-Bugs archive

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

bin/48688: When using grep with -i and -o options together, -i is ignored



>Number:         48688
>Category:       bin
>Synopsis:       When using grep with -i and -o options together, -i is ignored
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 29 06:00:00 +0000 2014
>Originator:     Chuck Martin
>Release:        6.1 Stable
>Organization:
>Environment:
NetBSD iceland 6.1_STABLE NetBSD 6.1_STABLE (SDF6.amd64) #0: Tue Nov 26 
12:49:14 UTC 2013  
root@bjork:/spare/netbsd/src/sys/arch/amd64/compile/SDF6.amd64 amd64
>Description:
When using the grep command with both the -i and -o options, no matches
are returned unless the case matches, meaning that the -i option is
being ignored.
>How-To-Repeat:
unicorn@iceland:~% echo OMICRON | grep -oi micro
unicorn@iceland:~% echo omicron | grep -oi micro
micro
unicorn@iceland:~%
>Fix:
It seems that the version of GNU grep included is about 13 years old:

| unicorn@iceland:~% grep -V
| grep (GNU grep) 2.5.1 nb1
|
| Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
| This is free software; see the source for copying conditions. There is NO
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This may be partly because the GNU web site is woefully out-of-date,
claiming that version 2.5.1a is the latest stable release, when numerous
versions have come out since then, and every other O/S seems to have a
version much newer than that.  Please update to a newer version in NetBSD
as well.



Home | Main Index | Thread Index | Old Index