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.


Reply via email to