#1635: hwloc requires a certain minimum version, but does not check for it ---------------------+------------------------------------------------------ Reporter: knarf | Owner: Type: defect | Status: reopened Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: backport ---------------------+------------------------------------------------------
Comment (by rhaas):
We don't have to use just bash. We can also use perl (Cactus requires it) or awk (POSIX requires it). So something like:
{{{ echo "1.42.12" | perl -ne 'm/0*(\d+)[.]0*(\d+)[.]0*(\d+)/; exit (($1 >= 1 and $2 >= 9 and $3 >= 11) ? 0 : 1)' }}}
would do the trick of checking that the version is larger or equal to 1.9.11.