[6340] in Athena Bugs
Re: vax 7.1H: grep
daemon@ATHENA.MIT.EDU (brlewis@ATHENA.MIT.EDU)
Mon Nov 5 10:47:52 1990
From: brlewis@ATHENA.MIT.EDU
Date: Mon, 5 Nov 90 10:47:41 -0500
To: jik@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: bugs[6337]
My original bug report was in error. Here's the line that was giving
me trouble:
if [ `hesinfo turnin sloc | grep -c -i $host` -eq 1 ]; then
My problem was that I hadn't defined $host. So the backquoted command
became
hesinfo turnin sloc | grep -c -i
Which doesn't make sense. Grep exits with status 2, just as the man
page says. If there's a bug here, it's that no error message is
printed.
Bruce R Lewis
Applications Development
MIT Project Athena