mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-11-22 09:01:28 +03:00
nvm_change_path interpolated `$NVM_DIR` and the new version dir unescaped into grep and sed expressions, so a path containing `&`, `#`, `[`, `*`, etc. corrupted `$PATH` (or made sed fail) when switching versions. Escape them before use.