ryenus
c390144c1e
add test for NVM_MIN_VER support
...
show only versions newer than NVM_MIN_VER if set
2025-04-14 20:43:08 +08:00
ryenus
37811e0d7d
always list installed versions
2025-04-14 20:43:08 +08:00
ryenus
48fe276e36
show only versions newer than NVM_MIN_VER if set
2025-04-14 20:43:08 +08:00
ryenus
095a4ca655
[Fix] debug: awk: not an option: --version
...
On Debian, the default awk/mawk doesn't support the '--version' option;
instead there's mawk-specific '-W version'.
2022-10-21 16:48:00 +08:00
ryenus
9721791563
[Fix] grep: warning: stray \ before /
...
No need to escape the `/` char in a grep pattern.
This is to fix the below error when using newer grep with `nvm_command_info`
> $ nvm_command_info curl
> grep: warning: stray \ before /
> /usr/bin/curl
This happens with at least GNU grep 3.8 version.
2022-10-20 10:49:43 +08:00
ryenus
89d6cdd6cf
[Fix] improve backward compatibility for non-gnu awk
...
Adding function alen(arr) since length(arr) is GNU extension.
Fixes #2916
2022-10-18 11:25:12 +08:00
ryenus
5e9791c4f8
[perf] nvm_print_versions: re-implement using awk
...
reducing `nvm ls-remote` from almost 20s to below 2s.
Signed-off-by: ryenus <ryenus@gmail.com >
2022-06-05 13:27:03 +08:00