|Do you know where your variables are?|
Re^2: At Last, a Useful Definition of "Scripting Language"by hardburn (Abbot)
|on Oct 29, 2004 at 13:20 UTC||Need Help??|
If C is your "get stuff done" language, why not say it's your scripting language?
Does a shell script have to have a #! line at the start, or is this just a nice-to-have to make sure the right shell executes it?
The shebang is there so you can say:
The shebang also makes it possible for other programs to execute the script without knowing what language the program is written in. For instance, Apache/mod_cgi just needs to fork() and exec() on anything specified as a CGI. No need to check the file extention or somesuch to line it up with a specific interpreter.
It is perfectly possible to leave the shebang out. You just have know what interpreter to use.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.