Path: utzoo!mnetor!uunet!munnari!otc!metro!basser!elecvax!geoffw From: geoffw@elecvax.eecs.unsw.oz (Geoff Whale) Newsgroups: comp.bugs.misc Subject: Re: pxp and null Message-ID: <3989@elecvax.eecs.unsw.oz> Date: 19 Apr 88 04:18:39 GMT References: <252@gould.doc.ic.ac.uk> Organization: EE and CS, Uni of NSW, Sydney, Australia Lines: 23 Summary: More interesting pxp behaviour Try running this self-explanatory Pascal program through pxp: ------------ program fred(output); { Guess what - BSD 4.2 pxp prints comments thus: printf(commenttext); so guess what happens when it encounters a %% sign, especially one followed by * } { The following comment contains %%x and %%*x } { %x %*x } begin null end. ------------ I don't know if it's fixed in 4.3 (I doubt it, only deranged students ever use comments, particularly with any punctuation :-)) ARPA: geoffw%elecvax.eecs.unsw.oz@seismo.CSS.GOV JANET: elecvax.eecs.unsw.oz!geoffw@ukc BITNET: geoffw%elecvax.eecs.unsw.oz%seismo.CSS.GOV@WISCVM UUCP: {seismo,hplabs,ukc,mcvax,ubc-vision,nttlab}!munnari!elecvax.eecs.unsw.oz!geoffw {decvax,vax135}!mulga!elecvax.eecs.unsw.oz!geoffw