Noogλe

search input

Function of the day

  • Takes 2 arguments

    s1, s2

    Compare two strings representing versions and return -1 if version s1 is older than version s2, 0 if they are the same, and 1 if s1 is newer than s2. The version comparison algorithm is the same as the one used by nix-env -u.