in reply to Re: The basics
in thread The basics
The #! line has two programs that "interpret" it:
- To the shell. An executable file that starts with a #! line will cause the executing shell to start up the program indicated in that line. That way, you can use #!/bin/sh to create a shell script, #!/usr/bin/perl to create a perl script etc. At least on unixish systems, there is always a shell involved in this process (but for instance windows doesn't work like that)
- (Possibly) to the interpreter indicated in the #! line.
For instance, perl reads the additional arguments on the #! line as a sort of "setup parameters". Example: #!/usr/bin/perl -wT will run perl with global warnings enabled and in taint mode.
|
---|
Replies are listed 'Best First'. | |
---|---|
(OT) Re^3: The basics
by Hue-Bond (Priest) on Jun 24, 2006 at 21:59 UTC | |
by Tanktalus (Canon) on Jun 25, 2006 at 14:25 UTC | |
by Hue-Bond (Priest) on Jun 25, 2006 at 14:35 UTC | |
by tye (Sage) on Jun 25, 2006 at 05:55 UTC |
In Section
Tutorials