Thread (11 messages) flat view 11 messages, 5 authors, 2016-06-15

Re: [PATCH] Define $PERL_PATH in test-lib.sh

From: Philippe Bruhat (BooK) <hidden>
Date: 2016-06-15 22:47:42

On Tue, Nov 10, 2009 at 12:17:26PM -0800, Junio C Hamano wrote:
"Philippe Bruhat (BooK)" [off-list ref] writes:
quoted
On Tue, Nov 10, 2009 at 01:26:53PM +0100, Johannes Sixt wrote:
quoted
quoted
 
+test -z "$NO_PERL" && test -z "$PERL_PATH" && export PERL_PATH=/usr/bin/perl
Wouldn't

   ... && export PERL_PATH=perl

be a safer fall-back?
/usr/bin/perl is the value used in the top-level Makefile.
I used this for consistency.
Hmm, but that means two separate definitions in ./Makefile and
t/test-lib.sh must be kept in sync forever, and there is not even a
comment next to the line that requires such care in your patch to help
people who might want to change these lines in the future.
Is there a way to obtain whatever value was computed in the Makefile,
or should I just add a comment in all-caps saying "keep this in sync
with the default value in the top level Makefile"? (and a more detailed
commit message)

-- 
 Philippe Bruhat (BooK)

 Freedom is not an individual effort. Yours comes only when you grant others
 theirs.                             (Moral from Groo The Wanderer #5 (Epic))
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help