nvm-sh-nvm/test/fast/Aliases
Jordan Harband d200a21559
[Fix] nvm_normalize_lts: only reject uppercase for LTS names, not regular aliases
The lowercase check was in the `*` catch-all branch of the `case` statement, rejecting any alias name with uppercase characters.
This prevented creating or reading uppercase aliases like `TESTY`.
The check should only apply to `lts/*` patterns, since LTS codenames are always lowercase.

Fixes #3764.
Bug introduced in 9fb9dec710 as part of fixing #3417.
2026-03-26 10:18:40 -07:00
..
circular [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
lts [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
percent in alias name [Fix] nvm_resolve_local_alias: avoid using variable as printf format string 2026-03-14 10:16:25 -07:00
'nvm alias' should ignore leading blank lines in the file [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
'nvm alias' should not accept aliases with a hash [Tests] add try/try_err helpers; convert tests to use them 2026-03-13 15:26:07 -04:00
'nvm alias' should not accept aliases with slashes [Tests] add try/try_err helpers; convert tests to use them 2026-03-13 15:26:07 -04:00
'nvm unalias' should accept aliases when they shadow a built-in alias [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
'nvm unalias' should not accept aliases with names equal to built-in alias [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
'nvm unalias' should not accept aliases with slashes [Tests] add try/try_err helpers; convert tests to use them 2026-03-13 15:26:07 -04:00
nvm_ensure_default_set [Fix] nvm_has_colors: also check if stdout is a terminal 2026-01-27 10:31:07 -08:00
nvm_list_aliases calls nvm_get_colors [Fix] nvm_has_colors: also check if stdout is a terminal 2026-01-27 10:31:07 -08:00
nvm_list_aliases propagates NVM_HAS_COLORS through pipeline [Fix] nvm alias: fix colors not showing by default 2026-03-13 16:13:41 -04:00
nvm_list_aliases works with LTS aliases [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
nvm_list_aliases works with no LTS aliases present [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
nvm_print_alias_path calls nvm_get_colors [Fix] nvm_has_colors: also check if stdout is a terminal 2026-01-27 10:31:07 -08:00
nvm_print_formatted_alias calls nvm_get_colors [Fix] nvm_has_colors: also check if stdout is a terminal 2026-01-27 10:31:07 -08:00
nvm_print_formatted_alias respects NVM_HAS_COLORS in pipeline [Fix] nvm alias: fix colors not showing by default 2026-03-13 16:13:41 -04:00
nvm_resolve_alias [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
nvm_resolve_local_alias [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm alias ˂aliasname˃ ˂target˃' again should change the target [Fix] nvm_has_colors: also check if stdout is a terminal 2026-01-27 10:31:07 -08:00
Running 'nvm alias ˂aliasname˃' should list but one alias [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm alias' lists implicit aliases when they do not exist [Fix] nvm_has_colors: also check if stdout is a terminal 2026-01-27 10:31:07 -08:00
Running 'nvm alias' lists manual aliases instead of implicit aliases when present [Fix] nvm_has_colors: also check if stdout is a terminal 2026-01-27 10:31:07 -08:00
Running 'nvm alias' should list all aliases [Fix] nvm_has_colors: also check if stdout is a terminal 2026-01-27 10:31:07 -08:00
setup [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
teardown [New] nvm_resolve_alias: only resolve one line of a multiline alias file 2023-10-23 14:41:14 -07:00
uppercase alias names should work [Fix] nvm_normalize_lts: only reject uppercase for LTS names, not regular aliases 2026-03-26 10:18:40 -07:00