From 6aeab3349c834f7c11524d04287933397a9d56e0 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 23 Oct 2023 14:05:37 -0700 Subject: [PATCH] [Robustness] `nvm_list_aliases`: avoid overwritten sort --- nvm.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nvm.sh b/nvm.sh index f3f6576..0b57f05 100644 --- a/nvm.sh +++ b/nvm.sh @@ -1090,7 +1090,7 @@ nvm_list_aliases() { NVM_NO_COLORS="${NVM_NO_COLORS-}" NVM_CURRENT="${NVM_CURRENT}" nvm_print_alias_path "${NVM_ALIAS_DIR}" "${ALIAS_PATH}" & done wait - ) | sort + ) | command sort ( local ALIAS_NAME @@ -1103,7 +1103,7 @@ nvm_list_aliases() { } & done wait - ) | sort + ) | command sort ( local LTS_ALIAS @@ -1117,7 +1117,7 @@ nvm_list_aliases() { } & done wait - ) | sort + ) | command sort return }