Aittvax.156
net.4bsd-bugs,net.v7bugs
utzoo!decvax!ittvax!swatt
Mon Dec  7 17:05:04 1981
lint(1) bug
Mon Dec  7 16:34:50 EST 1981 (reported by ittvax!freb)
[ ]     The lint shell driver has a bug in the -p and -n flags:
       they are looked for as "-*p*" and "-*n*", evan after another
       argument type is matched.  If you try to specify alternate
       include directories with -I, or an alternate library with -l,
       and the directory or library name has an 'n' in the name, it
       turns off checking against the standard library.  If the name
       has a 'p' in it, it tries to use the "port" library.  Fix is:

       -------------------------------------------------------------------
       : 'fix to lint'
       cp /usr/src/cmd/lint/SHELL /tmp/upd.$$.tmp ; chmod +w /tmp/upd.$$.tmp
       ed - /tmp/upd.$$.tmp <<\!XXFUNNYXX . P="port" Q !XXFUNNYXX W X="$X$A" -*P*) /TMP/UPD.$$.TMP CASE $A -*) 7,10D 15C DIFF IN ;; ESAC /USR/SRC/CMD/LINT/SHELL -*N*)>/tmp/upd.$$.dif
       if cmp - /tmp/upd.$$.dif <<\!XXFUNNYXX 15C11,16 < P="port" X="$X$A" -*P*) 7,10D6 CASE $A -*) --- IN ;; ESAC -*N*)>      -*)     X="$X$A"
       >               case $A in
       >               -*n*)   P= ;;
       >               -*p*)   P=port ;;
       >               esac
       >               ;;
       !xxFUNNYxx
       then
               : 'compare equal, ok'
               rm -f SHELL
               cp /tmp/upd.$$.tmp SHELL ; chmod a-w SHELL
       else
               echo "Old source file not same version;" \
                       "use diff listings by hand"
       fi
       rm -f /tmp/upd.$$.tmp /tmp/upd.$$.dif
       -------------------------------------------------------------------

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.