From: chmbt@zeus.bris.ac.uk (Mark Taylor)
Subject: Re: OSF1 grep doesn't do REs?
Date: 1998/02/20 [thread overview]
Message-ID: <EooCqG.5Ls@fsa.bris.ac.uk> (raw)
In-Reply-To: 34EB2C28.C7ED8CBB@iisc.com
John Chambers (from root account) wrote:
>
> On this Digital UNIX V4.0B (Rev. 564) system, grep and egrep both
> seem to absolutely refuse to do regular expressions, and I was sorta
> wondering if anyone knew some trick to make them behave normally.
>
> In checking with "man grep", I find that the RE stuff seems to have
> been radically expanded, with things called BREs and EREs, and no
> apparent clues as to how to tell the little beasties to enable one
> or the other. Is there some magical incantation that's needed to
> make it work?
>
> Here's proof of the problem, in a directory with lots of *.c files.
> As you can see, there are several examples of 'fork' and 'Fork' in
> the files, but '[Ff]ork' doesn't match anything. Using egrep gives
> exactly the same output.
>
> ===> which grep
> /sbin/grep
I don't know if this is your problem but I thought I had very weird
grep problems which I eventually identified (with absolutely no help
from Digital) to be a pattern matching (globbing I guess)
bug in the DU 4.0 /bin/csh. If you're using the C shell I suggest you
give the same thing a go in, say ksh and see if that's what the
problem is.
I fixed our problem by copying a /bin/csh from DU 3.2, which isn't
buggy (well, not in that respect).
-----------------------------------------------------------------------
| Mark Beauchamp Taylor - physicist trapped in a chemist's body. |
| mark.taylor@bris.ac.uk http://zeus.bris.ac.uk/~chmbt/index.html |
| Department of Chemistry, University of Bristol, UK -------
-----------------------------------------------------| ... It's the future! |
------------------------
next prev parent reply other threads:[~1998-02-20 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-18 5:00 OSF1 grep doesn't do REs? John Chambers (from root account)
1998-02-18 5:00 ` Charles M Richmond
1998-02-20 5:00 ` Mark Taylor [this message]
1998-02-19 5:00 ` Simon Taylor
1998-02-22 5:00 ` Bob Harris
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox