[3601] in Athena Bugs
/usr/bin/lin, VAX and RT 6.3B
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Wed Nov 8 13:36:17 1989
Date: Wed, 8 Nov 89 13:35:47 -0500
From: Jonathan I. Kamens <jik@PIT-MANAGER.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
What's wrong:
/usr/bin/lint has the following near the top of it:
case $A in
-*n*) P= ;;
-*p*) P=port ;;
esac
The problem with this is the "-*n*" will match "-I/usr/include",
"-Cname", etc., i.e. anything with an 'n' in it, and "-*p*" will do the
same fo 'p'.
The fix is either to take the lint shell script out of 4.3-Tahoe
(since it solves this problem), or to patch the current /usr/bin/lint
as follows:
*** /usr/bin/lint Wed Jun 15 20:24:01 1988
--- lint Wed Nov 8 13:26:46 1989
***************
*** 8,13 ****
--- 8,14 ----
for A in $*
do
case $A in
+ -[CIDOU]*) ;;
-*n*) P= ;;
-*p*) P=port ;;
esac
NOTE: This is what was causing the variable number of arguments
errors I was getting from lint for the function printf. Please ignore
my earlier bug report about VARARGS in the C library.
jik