mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
[Fix] Use local variable when looping over args
When the `nvm` function is called by a script which itself uses a variable named `i`, `nvm` clobbers the caller's variable. This happens even if the caller has declared its variable as local. See note 1 on https://tldp.org/LDP/abs/html/localvar.html#FTN.AEN18568
This commit is contained in:
parent
d4eba354b5
commit
86708833c9