Article View: net.bugs
Article #298Another bug in 4.2 lint argument parser; csh deficiency
From: Sam Kendall
Date: Sat, 08 Sep 1984 05:37
Date: Sat, 08 Sep 1984 05:37
18 lines
1464 bytes
1464 bytes
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
Technical Details
Message-ID:
<510@wjh12.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!mgnetp!ihnp4!mhuxl!ulysses!allegra!mit-eddie!genrad!wjh12!kendallShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site wjh12.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!mgnetp!ihnp4!mhuxl!ulysses!allegra!mit-eddie!genrad!wjh12!kendall From: kendall@wjh12.UUCP (Sam Kendall) Newsgroups: net.bugs,net.bugs.4bsd Subject: Another bug in 4.2 lint argument parser; csh deficiency Message-ID: <510@wjh12.UUCP> Date: Sat, 8-Sep-84 01:37:42 EDT Article-I.D.: wjh12.510 Posted: Sat Sep 8 01:37:42 1984 Date-Received: Thu, 13-Sep-84 19:11:34 EDT Organization: Delft Consulting Corp., New York Lines: 18