Re: [PATCH] Try 2: Allow PERL_PATH="/usr/bin/env perl"

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <junkio@...>
Cc: git <git@...>
Date: Thursday, May 3, 2007 - 7:35 pm

Junio C Hamano wrote:

Maybe PERL_PATH should be renamed PERL_SHEBANG or something.  Because if 
you pass in something that doesn't work on a shebang line (longer than 
32 characters, say), it just won't work.

I was under the impression that "#!/usr/bin/env perl" was the "right" 
way to invoke perl.  But I'm not doing this because I want to do the 
"right" thing.  I'm doing this because it makes this scenario work:

$ sudo port install git-core
installing openssl...
installing openssh...
installing curl...
installing expat...

$ ...
$ git-send-email ...
$ ...

$ sudo port install git-svn
installing apr...
installing subversion...
installing perl...
installing p5-svn-simple...

git-core works fine with stock perl, and we don't want to install extra 
megabytes of unneeded stuff if it really isn't needed.

Certainly there are other ways of making this work.  But they're all 
uglier than doing the "right" thing of "/usr/bin/env perl".

cheers,
Bryan

P.S.
On Linux, "#!/usr/bin/env perl -w" doesn't work.  On OS X it works fine.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Try 2: Allow PERL_PATH="/usr/bin/env perl", Bryan Larsen, (Thu May 3, 6:58 pm)
Re: [PATCH] Try 2: Allow PERL_PATH="/usr/bin/env perl", Junio C Hamano, (Thu May 3, 7:02 pm)
Re: [PATCH] Try 2: Allow PERL_PATH="/usr/bin/env perl", Andrew Ruder, (Thu May 3, 8:03 pm)
Re: [PATCH] Try 2: Allow PERL_PATH="/usr/bin/env perl", Bryan Larsen, (Thu May 3, 7:35 pm)
Re: [PATCH] Try 2: Allow PERL_PATH="/usr/bin/env perl", Junio C Hamano, (Thu May 3, 8:43 pm)
Re: [PATCH] Try 2: Allow PERL_PATH="/usr/bin/env perl", Bryan Larsen, (Thu May 3, 11:30 pm)