-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALIAS: unbound variable #1526
Comments
Related issue: #1505 |
hmm, the code you linked to has the variable set here, which should mean it's always bound. |
although I can repro it locally, so i'll figure it out shortly :-) |
The issue is this snippet: if [ "${ALIAS-}" = '--' ]; then
unset ALIAS
fi
nvm_list_aliases "${ALIAS}" The
|
Thanks, turns out it's a simple fix. |
Looking at the code in |
👍 thanks! |
With nvm 0.33.2 (and presumably trunk, the same code exists), I see the following error occasionally when using nvm inside a script with
set -eu
specified:<snip>/.nvm/nvm.sh: line 3103: ALIAS: unbound variable
Command run:
nvm ls 6
The text was updated successfully, but these errors were encountered: