From: utzoo!decvax!cca!chris.umcp-cs@UDel-Relay@sri-unix Newsgroups: net.unix-wizards Title: Re: blood curdling exec Article-I.D.: sri-unix.4209 Posted: Fri Nov 19 05:21:04 1982 Received: Sat Nov 20 09:16:28 1982 From: Chris Torek Date: 16 Nov 82 03:28:13 EST (Tue) Everyone seems to be making the same mistake (I've done it myself). The script starting with "#!" is NOT set up as the standard input. It is passed as argv[1] to the program. If you think about this for a moment the difficulty of skipping that first line becomes obvious. That's why I sent the original message, "does anyone know if this has been cleaned up in 4.2?". I don't have any suggestions for it but maybe someone else does. Remember: argv[1], not file 0.