Say I have my.script such as
#!/bin/bash
blah
blah
and the bash interpreter accepts a --verbose argument.
How do I execute my.script passing --verbose to bash?
I know I can do bash --verbose my.script on the command line, but I need to be able to…
Would an extra # always cancel out the sharp exclamation? As in:
Enabled:
#!/foo/bar
Disbabled:
##!/foo/bar
Are there any known circumstances where an exec could execute the bar? Are there environments where \x23\x23\x21... is recognized magic?
Why isn't the default behavior of the shebang line to lookup the first argument as if it was a command? It seems like it is necessary to be a path to a tool.
doesn't work(why?):
#!bash
works:
#!/usr/bin/env bash
I have the following question about UNIX:
What else is needed when the top line goes
#!\bin\awk -f
to make it run as a command?
I am thinking whatever the name of the script is it need to be given permission using chmod to make it run.