|
From: | Paul Eggert |
Subject: | Re: Alpine: useless-if-before-free: Exec format error |
Date: | Sat, 15 Jun 2019 00:23:00 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
Bruno Haible wrote:
<https://perlbrew.pl/Dealing-with-shebangs.html> suggests something like the following instead. This would avoid having separate shell scripts and .pl files, which would be a plus:- Add a shell script useless-if-before-free that merely does this: #!/bin/sh exec perl "$0".pl "$@"
#!/bin/sh #! −*−perl−*− eval 'exec perl −x −wS $0 ${1+"$@"}' if 0;
[Prev in Thread] | Current Thread | [Next in Thread] |