Open nohupped opened 6 years ago
I solved this locally by installing the gnu coreutils via brew
:
brew install coreutils
and modifying the script to use gsort -V
instead of sort -V
But this isn't a general fix because it would break Linux installs.
You could generalize this a little and make it work better across MOSX and Linux with a pattern like this (after telling MOSX users to brew install coreutils
):
Setup:
SORT=$(which gsort || which sort)
and then at the call site(s):
$SORT
or
"${SORT}"
for example:
"${SORT}" -V
which ought to work on MOSX and Linux.
Ah, good news: it looks like you have a SORT_PATH
defined in tools
, which would be a great place to make this change, centrally.
Also, this means there is a bug in listall
, because sort
is being invoked instead of "${SORT_PATH}"
, which is probably what was intended.
If you have the time a pr would be greatly appreciate.
Hi there, After installing gvm, when I run a
gvm listall
, it fails with the outputand the error I guess is coming from the commit d2a19aeb3b1ec738c25f970f7c59390dfebf9f25 which does a
| sort -V
. I am running from mac and my sort version isRemoving the
-V
is working for me.The sort version that comes with my mac which is my work laptop is quite old, when compared to the ones that ship with linux, so I was wondering if it is possible to have a backward compatibility?
Thank you.