in reply to Re^3: How do I use 'which' in the hash-bang line? (updated x2)
in thread How do I use 'which' in the hash-bang line?
Try:
$ chmod a+x test.pl $ ./test.pl
The env utility *supports* passing arguments to the command .... if invoked from command line (with args split by shell). As part of shebang, however, all following arguments are passed to env as a single string. So if you don't have a command such as "perl -wls" on the $PATH, the result is a failure.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How do I use 'which' in the hash-bang line?
by haukex (Archbishop) on Mar 15, 2018 at 20:01 UTC |