[533] in Athena Bugs

home help back first fref pref prev next nref lref last post

grep -i

daemon@ATHENA.MIT.EDU (qjb@ATHENA.MIT.EDU)
Tue Jul 19 14:00:42 1988

From: <qjb@ATHENA.MIT.EDU>
Date: Tue, 19 Jul 88 14:00:07 EDT
To: bugs@ATHENA.MIT.EDU, rt_testers@ATHENA.MIT.EDU, vs_testers@ATHENA.MIT.EDU,
Please ignore my bug report.  I forgot that I was using the nonstandard 
version of grep that was installed on the vice packs.  My bug report
was this, for the sake of the people who didn't see it:

  grep -i doesn't match upper-case letters in pattern to lower-case 
  letters in the input.

  **=> soup:/mit/qjb <=**
  % echo "This line contains the letter Q." | grep -i q
  This line contains the letter Q.
  **=> soup:/mit/qjb <=**
  % echo "This line contains the letter q." | grep -i Q
  Done                 echo This line contains the letter q. |
  Exit 1               grep -i Q

  Exact matches work correctly.

This feature works file on /usr/ucb/grep that is on the 6.0B packs
for both the RT and the VAX, but /bin/grep does not.  Why do we
have two versions of grep in the standard execute path?  /bin/grep
(according to the sources) does not even support the -i option. 
All it does is increment the variable yflag which is not referenced
anywhere else in the program.

The NOTE file on vice does mention that /usr/ucb/grep is a symlink to
/bin/grep because of a different error that occured.  Perhaps this
shouldn't have been done.

home help back first fref pref prev next nref lref last post