Re: [PATCH] perl shebangs: Use /usr/bin/env, not /usr/bin/perl
- From
Jeff King <peff@peff.net>
- Date
- May 21, 2010, 16:01 UTC
- Message-ID
- <20100521160143.GA29031@sigill.intra.peff.net>
- In-Reply-To
- <86tyq1gti2.fsf@red.stonehenge.com>
On Fri, May 21, 2010 at 08:32:53AM -0700, Randal L. Schwartz wrote:
> The official Perl should be in /usr/bin or /usr/local/bin, and that's > the one you should use with Git. *Or*, give the installer a knob to > configure.
Don't we already provide a knob? The Makefile has:
$(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
[...]
sed -e '1{' \
-e ' s|#!.*perl|#!$(PERL_PATH_SQ)|' \
[...]So just setting PERL_PATH should be enough (from which PERL_PATH_SQ is derived).
-Peff