/dev/stdin

Chris Torek chris at mimsy.UUCP
Wed Jul 6 17:21:25 AEST 1988


>In article <16305 at brl-adm.ARPA> rbj at cmr.icst.nbs.gov (Root Boy Jim) suggests:
>>Another (mis?)use is to compile programs from stdin. First, we do
>>`ln -s /dev/stdin x.c', then `cc -c x.c'. ...

In article <8220 at ncoast.UUCP> allbery at ncoast.UUCP (Brandon S. Allbery) writes:
>Would this work?  I was under the impression that the C compiler made
>multiple passes over the source ....

Some do; but the first will be /lib/cpp, with output sent to a temp
file, in this case.  I suppose someone might run the preprocessor
twice. . . .
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.wizards mailing list