jonab@sdcrdcf.UUCP (Jonathan Biggar) (03/26/85)
Index: /usr/src/usr.bin/lint/SHELL, /usr/bin/lint
An argument to lint that starts with a '-' and contains an 'n' or a 'p'
will always turn on the -n or -p flags. For example, if the argument was
'-I/usr/include/sys', the -n flag will be turned on, because 'include' has
an 'n'.
Fix:
(This is only verified for 4.2bsd systems, although other systems likely
have this bug.)
add the line marked '+' to the first case statement in the lint front end
shell script:
case $A in
+ -[IDOUlC]*) ;;
-*n*) P= ;;
-*p*) P=port ;;
esac
Jon Biggar
{allegra,burdvax,cbosgd,hplabs,ihnp4,sdccsu3}!sdcrdcf!jonab