Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rpi!ccnysci!phri!news From: roy@alanine.phri.nyu.edu (Roy Smith) Newsgroups: comp.unix.wizards Subject: Bug in grep -i ? Message-ID: <1989Dec25.210118.7946@phri.nyu.edu> Date: 25 Dec 89 21:01:18 GMT Sender: news@phri.nyu.edu (News System) Organization: Public Health Research Institute, New York City Lines: 18 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@alanine.phri.nyu.edu -OR- {att,philabs,cmcl2,rutgers,hombre}!phri!roy "My karma ran over my dogma"