/dev/stdin

Brandon S. Allbery allbery at ncoast.UUCP
Wed Jul 6 03:47:29 AEST 1988


As quoted from <16305 at brl-adm.ARPA> by rbj at cmr.icst.nbs.gov (Root Boy Jim):
+---------------
| Another (mis?)use is to compile programs from stdin. First, we do
| `ln -s /dev/stdin x.c', then `cc -c x.c'. I'm sure one can find really
+---------------

Would this work?  I was under the impression that the C compiler made
multiple passes over the source -- not useful if you build a pipe with

ln -s /dev/stdin x.c; (CProgramGenerator | cc -c x.c); rm x.c

++Brandon
-- 
Brandon S. Allbery, uunet!marque!ncoast!allbery			DELPHI: ALLBERY
	    For comp.sources.misc send mail to ncoast!sources-misc



More information about the Comp.unix.wizards mailing list