Another bug in 4.2 lint argument parser; csh deficiency
Sam Kendall
kendall at wjh12.UUCP
Sat Sep 8 15:37:42 AEST 1984
I've looked at the 4.2 lint shell script, and the problem with -I noted
by rlgvax!peter is not its only problem. Some, ah, hacker rewrote
it from Bourne shell into C shell, adding the bug with -I, and also
adding the following problem: half the error messages go to stdout, and
the other half go to stderr, which is fun if you want to pipe the
messages to a file. In the Bourne shell script this problem is
eliminated by the simple statement
exec 2>&1
which, for you C shell enthusiasts out there, redirects stderr to stdout
for the remainder of the script--a thing which, as far as I can tell by
reading that 22-page manual page, cannot be done in the C shell. Sorry
if I sound a little anti-C shell here; I just don't like 22-page manual
pages.
Sam Kendall {allegra,ihnp4,ima,amd}!wjh12!kendall
Delft Consulting Corp. decvax!genrad!wjh12!kendall
More information about the Net.bugs
mailing list