From: BenoƮt Person Date: Wed, 03 Jul 2013 09:46:50 GMT Subject: Re: [PATCH v7 2/7] wrap-for-bin: Make bin-wrappers chainable Message-ID: In-Reply-To: <7vhagcgh0e.fsf@alter.siamese.dyndns.org> >> For now, GITPERLLIB is only used in that kind of statements: >> use lib (split(/:/, $ENV{GITPERLLIB} || ... )); >> >> The trailing ':' does not really matter, split will ignore it. > > That may be true with the current use, but "For now" leaves funny > taste, doesn't it? definitely. For me, the issue was that we were trading that "funny taste" for less readable code in wrap-for-bin.sh but with that default-substitution construct, it seems worth it. (a huge if-block seemed even funnier in fact :) ) > It is not too much trouble to fix by writing > > GITPERLLIB='@@BUILD_DIR@@/perl/blib/lib'"${GITPERLLIB:+:$GITPERLLIB}" > > and we will not have to be worried about future changes breaking > today's assumption. That construct is really nice :) did not know there was such a thing in bash, thanks.