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. -- Andrew McNabb http://www.mcnabbs.org/andrew/ PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868
pgpYie5cgU1ny.pgp
Description: PGP signature
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
