Re: [PATCH v2 1/4] t1517: skip svn tests if svn is not installed
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 3, 2026, 20:36 UTC
- Message-ID
- <xmqq33xzize2.fsf@gitster.g>
- In-Reply-To
- <20260702053724.GA3437623@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> fed to perl (no quotes around 1.1.0). We sometimes catch these cases > automatically it results in an extra argument to test_expect_success, > etc. But here you are unlucky enough that it does not (and anyway, we do > not seem to have the same safety check for test_lazy_prereq; we'd just > ignore the extra arguments). > > And of course being perl, it doesn't complain. I'm not sure how it is > interpreted,
I happen to know ;-).
When you have more than two sequences of digits separated by dot, like IP address 192.168.1.1, you are telling Perl to interpret the sequence as a string, each byte of it is the number denoted by these digits. I believe this was invented primarily for IP addresses, but it does not have to be just four digits. To wit:
$ perl -e 'print 65.66.67;'
ABC
$ perl -e 'print 65.66.67.68.69;'
ABCDEOf course, 65.66 is not AB, but a floating-point number that is between integers 65 and 66:
$ perl -e 'print 65.66;'
65.66> but I doubt the use of "gt" is right.
True.