On Sat, 07 Aug 2004 22:38:59 -0600, Andrew McNabb <[EMAIL PROTECTED]> wrote:
> On Sat, Aug 07, 2004 at 09:42:14PM -0600, Andrew Jorgensen wrote:
> >
> > This is interesting to me now that you mention it.  It seems that
> > rather than pass the name of the file to the #! thingy it could have
> > passed the contents of the file.  I guess what I'm saying is that
> > while, yes, that is how it is, it didn't have to be.  What advantages
> > does this approach have over the other?
> 
> Sometimes it's nice to be able to have scripts that take something on
> standard input.  This way (the way it's done), you don't have to play
> any games to make an interpreted program look just like a normal program.

Ah, but that's your script reading it's input, not the interpreter
itself.  The two could concievably be different things.  Perhaps the
extra complication of keeping them separate is one reason to do it the
way it's done.

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to