|
From: | Paul Eggert |
Subject: | Re: Alpine: useless-if-before-free: Exec format error |
Date: | Fri, 14 Jun 2019 17:47:43 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 6/14/19 4:51 PM, Bruno Haible wrote:
But POSIX does not specify that the command interpreter for scripts without shebang is /bin/sh; therefore IMHO it would be good not to make this assumption.
Perhaps the code in those scripts was taken from an earlier version of the output of "perldoc perlrun". The current version <https://perldoc.perl.org/perlrun.html> gives several alternative script headers (including at least one that appears to be a joke) and say that none work everywhere. It is a bit of a portability mess. Perhaps we should just prepend "#!/bin/sh" or "#!/usr/bin/env perl" (not sure which) and let people on weird systems fix things by hand.
[Prev in Thread] | Current Thread | [Next in Thread] |