Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Perl script as the shebang?

by rjbs (Pilgrim)
on Sep 19, 2004 at 01:16 UTC ( #392082=note: print w/replies, xml ) Need Help??

in reply to Perl script as the shebang?

While other suggestions are, in my opinion, better, you will find that zsh will allow you to put shebang-powered scripts in the shebang line. The kernel execve call will fail, but zsh will pick up the pieces.

Just another reason that zsh is the bee's knees!

Replies are listed 'Best First'.
Re^2: Perl script as the shebang?
by Aristotle (Chancellor) on Sep 19, 2004 at 07:28 UTC

    But that will work only from within zsh. If you want to run such a script from somewhere else (like as a CGI script, or maybe during the init scripts which are usually executed by a more lightweight sh), you still need one of the other solutions.

    Makeshifts last the longest.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://392082]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2018-05-22 10:46 GMT
Find Nodes?
    Voting Booth?