Thread (21 messages) 21 messages, 3 authors, 2d ago

Re: [PATCH v2 1/4] t1517: skip svn tests if svn is not installed

From: Jeff King <hidden>
Date: 2026-07-04 04:47:45

On Fri, Jul 03, 2026 at 01:36:37PM -0700, Junio C Hamano wrote:
Jeff King [off-list ref] writes:
quoted
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;'
    ABCDE

Of 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
Ah, thanks. It is both exciting and horrifying that in 2026 I can still
learn new perl esoterica. :)

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help