in reply to Re^2: shebang problem on openSUSE
in thread shebang problem on openSUSE
Hi
See perlrun , when #!/usr/bin/env perl -l doesn't work use
#!/bin/sh #! -*-perl-*- eval 'exec perl -x -wS $0 ${1+"$@"}' if 0;
Also see https://www.in-ulm.de/~mascheck/various/shebang/#splitting which says
Splitting arguments A very few systems deliver only the first argument, some systems split + up the arguments like a shell to fill up argv[], most systems deliver all arguments as a single string. See the table b +elow. I noticed that for Linux (delivering all arguments as one strin +g), a patch to split up was suggested on the Linux kernel mailing list (de +ad link, try this page, archive.org), followed by a discussion of som +e portability issues.
See also https://unix.stackexchange.com/questions/361794/why-am-i-able-to-pass-arguments-to-usr-bin-env-in-this-case?rq=1, https://stackoverflow.com/questions/4303128/how-to-use-multiple-arguments-for-awk-with-a-shebang-i-e...
In Section
Seekers of Perl Wisdom