saintmike has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks,
let's say there's a perl script /tmp/parse_me which has a she-bang line calling the perl interpreter and expects a file as an argument.
Now, when a script like
gets called from the command line, the bash shell will call another instance of bash and hand it some text, which of course throws an error:#!/tmp/parse_me some text
./scriptname: line 3: some: command not found
However, if the above script gets called in the zsh shell, it correctly calls
and succeeds./tmp/parse_me scriptname
Does anyone know if there's a limitation in bash that only allows executables in the she-bang line, and prohibits using perl- and other scripts?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perlscript as she-bang line
by simonflk (Pilgrim) on Dec 28, 2004 at 23:36 UTC | |
Re: perlscript as she-bang line
by ambrus (Abbot) on Dec 28, 2004 at 23:13 UTC | |
by saintmike (Vicar) on Dec 28, 2004 at 23:40 UTC | |
by ambrus (Abbot) on Dec 28, 2004 at 23:47 UTC |
Back to
Seekers of Perl Wisdom