Re: [Patch] Using 'perl' in *.sh

5 messages, 4 authors, 2016-06-15 · open the first message on its own page

Re: [Patch] Using 'perl' in *.sh

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:33

Michal Rokos [off-list ref] writes:
Hi,

some GIT's shell script are using bare 'perl' for perl invocation. It's 
causing me problems... I compile git with PERL_PATH set and I'd suggest to 
use it everywhere.

So @@PERL@@ would be replaced with PERL_PATH_SQ instead.

What do you think?
Absolutely.

I think it was just sloppiness that we did not do so already.
Thanks.

Re: [Patch] Using 'perl' in *.sh

From: Alex Riesen <hidden>
Date: 2016-06-15 22:42:33

Junio C Hamano, Sat, Jul 08, 2006 20:27:37 +0200:
quoted
some GIT's shell script are using bare 'perl' for perl invocation. It's 
causing me problems... I compile git with PERL_PATH set and I'd suggest to 
use it everywhere.

So @@PERL@@ would be replaced with PERL_PATH_SQ instead.

What do you think?
Absolutely.
Now imagine a non-posix system where an upgrade was made. Amongst
other things perl was moved, i.e. from /opt/perl-5.8.8 to
/usr/local/{bin,lib}. Suddenly git breaks.

Re: [Patch] Using 'perl' in *.sh

From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Date: 2016-06-15 22:42:33

On Sun, 2006-07-09 11:46:30 +0200, Alex Riesen [off-list ref] wrote:
Junio C Hamano, Sat, Jul 08, 2006 20:27:37 +0200:
quoted
quoted
some GIT's shell script are using bare 'perl' for perl invocation. It's 
causing me problems... I compile git with PERL_PATH set and I'd suggest to 
use it everywhere.

So @@PERL@@ would be replaced with PERL_PATH_SQ instead.

What do you think?
Absolutely.
Now imagine a non-posix system where an upgrade was made. Amongst
other things perl was moved, i.e. from /opt/perl-5.8.8 to
/usr/local/{bin,lib}. Suddenly git breaks.
My personal oppinion is to call perl scripts as `perl foo.pl' and thus
let the user decide (by means of setting $PATH) which perl incarnation
she wants to use.

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 für einen Freien Staat voll Freier Bürger"  | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Re: [Patch] Using 'perl' in *.sh

From: Yakov Lerner <hidden>
Date: 2016-06-15 22:42:33

On 7/9/06, Alex Riesen [off-list ref] wrote:
Junio C Hamano, Sat, Jul 08, 2006 20:27:37 +0200:
quoted
quoted
some GIT's shell script are using bare 'perl' for perl invocation. It's
causing me problems... I compile git with PERL_PATH set and I'd suggest to
use it everywhere.

So @@PERL@@ would be replaced with PERL_PATH_SQ instead.

What do you think?
Absolutely.
Now imagine a non-posix system where an upgrade was made. Amongst
other things perl was moved, i.e. from /opt/perl-5.8.8 to
/usr/local/{bin,lib}. Suddenly git breaks.
Building new perl for sources never removed,
by itself, older perls on the system. Did it ever for you ?
How would installing new perl into new location
break git ? It would only break if you *remove*
old perl, not if you install new perl into new
location, no ?

Yakov

Re: [Patch] Using 'perl' in *.sh

From: Alex Riesen <hidden>
Date: 2016-06-15 22:42:33

Yakov Lerner, Sun, Jul 09, 2006 12:09:30 +0200:
quoted
Now imagine a non-posix system where an upgrade was made. Amongst
other things perl was moved, i.e. from /opt/perl-5.8.8 to
/usr/local/{bin,lib}. Suddenly git breaks.
Building new perl for sources never removed,
by itself, older perls on the system. Did it ever for you ?
No. But a strange package management program will remove the old perl.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help