mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-11-26 02:33:48 +03:00
A `type` function or alias defined before nvm is sourced hijacked `nvm_has` and `nvm_command_info`. `nvm_has` now uses `command -v`; `nvm_command_info` needs `type`'s output, so it uses `builtin type` in zsh, whose `command type` runs an external `type` that can't see shell functions. Since `command -v` makes dash hash the command, `nvm_command_info` also parses dash's and ksh's "tracked alias" output. Fixes #2352.