bug in lint front end shell script

Jonathan Biggar jonab at sdcrdcf.UUCP
Wed Mar 27 05:45:40 AEST 1985


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



More information about the Comp.bugs.4bsd.ucb-fixes mailing list