Thread (1 message) 1 message, 1 author, 2016-06-15

Re: TTY tests are unnecessarily suppressed under Mac OS

From: Jeff King <hidden>
Date: 2016-06-15 23:02:56

On Thu, Nov 13, 2014 at 09:06:51PM +0000, Michael Blume wrote:
Can do =)

uname -r spits out "14.0.0". Is there anything in git's testing library for
comparing version strings or should I roll my own?
No, there's nothing standard for comparing version numbers. Probably

    test "$(uname -r | cut -d. -f1") -ge 14

sufficient.

-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