Re: [PATCH] global: resolve Perl executable via PATH
- From
Todd Zullinger <tmz@pobox.com>
- Date
- Apr 5, 2023, 14:42 UTC
- Message-ID
- <ZC2I7CfVzY6Tl7Pk@pobox.com>
- In-Reply-To
- <d9cfad7caf9ff5bf88eb06cf7bb3be5e70e6d96f.1680689378.git.ps@pks.im>
Patrick Steinhardt wrote:
Show 5 quoted lines
> The majority of Perl scripts we carry in Git have a `#!/usr/bin/perl` > shebang. This is not a portable location for the Perl interpreter and > may thus break on some systems that have the interpreter installed in a > different location. One such example is NixOS, where the only executable > installed in `/usr/bin` is env(1).
Is there a reason to not set PERL_PATH, which is the documented method to handle this? From the Makefike:
# Define PERL_PATH to the path of your Perl binary (usually /usr/bin/perl).
-- Todd