From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
"git@vger.kernel.org" <git@vger.kernel.org>
Cc: Junio C Hamano <gitster@pobox.com>
Subject: RE: [PATCH] perl shebangs: Use /usr/bin/env, not /usr/bin/perl
Date: Fri, 21 May 2010 17:15:46 +0200 [thread overview]
Message-ID: <A612847CFE53224C91B23E3A5B48BAC74483234EEB@xmail3.se.axis.com> (raw)
In-Reply-To: <1274454086-2312-1-git-send-email-avarab@gmail.com>
> -----Original Message-----
> From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On
> Behalf Of Ævar Arnfjörð Bjarmason
> Sent: den 21 maj 2010 17:01
> To: git@vger.kernel.org
> Cc: Junio C Hamano; Ævar Arnfjörð Bjarmason
> Subject: [PATCH] perl shebangs: Use /usr/bin/env, not /usr/bin/perl
>
> Change the Perl Git utilities to use #!/usr/bin/env perl as a shebang
> instead of #!/usr/bin/perl. This makes e.g. git-send-email work if
> your personal perl has Net::SMTP::SSL, but your system perl doesn't.
>
> This only affects shebangs in the uninstalled source tree. On
> installation shebangs will still be munged to PERL_PATH, which is
> currently /usr/bin/perl by default.
>
> With this change all the code in Git that uses a shebang now uses
> /usr/bin/env, except those things that use /bin/sh and /bin/bash. All
> the Python code already used it, and some of the Perl code.
>
> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
> ---
>
> This should probably have been a series, not an individual patch since
> it depends on <1274453455-1941-1-git-send-email-avarab@gmail.com> to
> apply. However the two are functionally independent. I can alter this
> one so that it applies to the current master on request, but I'm
> guessing the "perl libs: perl -w + use warnings is redundant" patch is
> wanted anyway.
>
> Documentation/build-docdep.perl | 2 +-
> Documentation/cat-texi.perl | 2 +-
> Documentation/cmd-list.perl | 2 +-
> Documentation/fix-texi.perl | 2 +-
> compat/vcbuild/scripts/clink.pl | 2 +-
> compat/vcbuild/scripts/lib.pl | 2 +-
> contrib/blameview/blameview.perl | 2 +-
> contrib/buildsystems/engine.pl | 2 +-
> contrib/buildsystems/generate | 2 +-
> contrib/buildsystems/parse.pl | 2 +-
> contrib/continuous/cidaemon | 2 +-
> contrib/continuous/post-receive-cinotify | 2 +-
> contrib/examples/git-remote.perl | 2 +-
> contrib/examples/git-rerere.perl | 2 +-
> contrib/examples/git-svnimport.perl | 2 +-
> contrib/fast-import/git-import.perl | 2 +-
> contrib/fast-import/import-directories.perl | 2 +-
> contrib/fast-import/import-tars.perl | 2 +-
> contrib/hooks/setgitperms.perl | 2 +-
> contrib/hooks/update-paranoid | 2 +-
> contrib/stats/mailmap.pl | 2 +-
> contrib/stats/packinfo.pl | 2 +-
> git-add--interactive.perl | 2 +-
> git-archimport.perl | 2 +-
> git-cvsexportcommit.perl | 2 +-
> git-cvsimport.perl | 2 +-
> git-cvsserver.perl | 2 +-
> git-send-email.perl | 2 +-
> gitweb/gitweb.perl | 2 +-
> t/gitweb-lib.sh | 2 +-
> t/t7006/test-terminal.perl | 2 +-
> t/t9138-git-svn-authors-prog.sh | 2 +-
> t/t9700/test.pl | 2 +-
> 33 files changed, 33 insertions(+), 33 deletions(-)
>
> diff --git a/Documentation/build-docdep.perl b/Documentation/build-
> docdep.perl
> index ba4205e..dc50f21 100755
> --- a/Documentation/build-docdep.perl
> +++ b/Documentation/build-docdep.perl
> @@ -1,4 +1,4 @@
> -#!/usr/bin/perl
> +#!/usr/bin/env perl
>
> my %include = ();
> my %included = ();
> diff --git a/Documentation/cat-texi.perl b/Documentation/cat-texi.perl
> index 828ec62..d96d2f1 100755
> --- a/Documentation/cat-texi.perl
> +++ b/Documentation/cat-texi.perl
> @@ -1,4 +1,4 @@
> -#!/usr/bin/perl -w
> +#!/usr/bin/env perl -w
This does not work. You cannot give arguments to an application
started via /usr/bin/env; it will interprete everything after
/usr/bin/env as the application name and fail with:
/usr/bin/env: perl -w: No such file or directory
//Peter
next prev parent reply other threads:[~2010-05-21 15:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-21 14:50 [PATCH] perl libs: perl -w + use warnings is redundant Ævar Arnfjörð Bjarmason
2010-05-21 15:01 ` [PATCH] perl shebangs: Use /usr/bin/env, not /usr/bin/perl Ævar Arnfjörð Bjarmason
2010-05-21 15:15 ` Peter Kjellerstedt [this message]
2010-05-21 15:22 ` Ævar Arnfjörð Bjarmason
2010-05-21 16:54 ` [PATCH v2] " Ævar Arnfjörð Bjarmason
2010-05-21 15:26 ` [PATCH] " Tor Arntsen
2010-05-21 15:32 ` Randal L. Schwartz
2010-05-21 16:01 ` Jeff King
2010-05-21 16:52 ` [PATCH 1/2] perl libs: perl -w + use warnings is redundant Ævar Arnfjörð Bjarmason
2010-05-21 16:55 ` Ævar Arnfjörð Bjarmason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A612847CFE53224C91B23E3A5B48BAC74483234EEB@xmail3.se.axis.com \
--to=peter.kjellerstedt@axis.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).