Bug in grep -i ?

Roy Smith roy at alanine.phri.nyu.edu
Tue Dec 26 08:01:18 AEST 1989


	Is there any reason, other than a bug, why the following two
commands (extracted from a history list) should give different output?

   122	15:51	grep -i 'N:.*SIRIUS' yalerem.txt
   123	15:51	grep -i 'n:.*sirius' yalerem.txt

The second give no output, while the first prints:

 2491  N:   SIRIUS; Canicula; Dog Star; Aschere.                                                                                    
which, in case it's not obvious, is blank-padded to a length of 132.  This
ws done on a Sun-3/50 under SunOS-3.5.2, using the standard grep supplied
by Sun.  Sure looks like grep is ignoring the -i flag, doesn't it?
--
Roy Smith, Public Health Research Institute
455 First Avenue, New York, NY 10016
roy at alanine.phri.nyu.edu -OR- {att,philabs,cmcl2,rutgers,hombre}!phri!roy
"My karma ran over my dogma"



More information about the Comp.unix.wizards mailing list