debaditya
80e700ec21
[Fix] nvm_alias: unset zsh's extendedglob while reading an alias file
...
`#` is a repetition operator under `extendedglob`,
so `${VAR%%#*}` is an invalid pattern:
zsh aborts the expansion and `nvm_alias` silently prints nothing,
leaving the `default` alias unresolved when nvm.sh is sourced.
The read loop moves into `nvm_print_alias_file` so that `local_options`
scopes the option change to that section alone,
rather than to everything `nvm_alias` does,
and restores whatever the caller had set.
Fixes #3885
Co-authored-by: debaditya <debaditya2005hait@gmail.com >
Co-authored-by: Jordan Harband <ljharb@gmail.com >
2026-09-03 20:54:28 -07:00
Jordan Harband
35212c1346
[Fix] nvm_has_colors: also check if stdout is a terminal
2026-01-27 10:31:07 -08:00
Jordan Harband
0d53381666
[Tests] move sourcing suite to GHA
2024-08-22 13:30:55 -07:00
Jordan Harband
df70535248
[Fix] nvm_auto: Fix bug introduced in c31a867
2024-08-21 10:54:19 -07:00
Dena Burd
2fea55fdb5
[Tests] add test that fails without fix for #2362
2021-01-15 14:07:47 -08:00
Xandor Schiefer
eabd7ab13d
Respect previously nvm-loaded node version when sourcing
2016-11-14 19:18:24 +02:00
Peter Dave Hello
2cd2c0f72e
Remove useless trailing newlines
2018-02-26 01:01:30 +08:00
Peter Dave Hello
f7763c8ba9
[Tests] die() in tests should quote "$@" for echo
2016-11-07 03:34:36 +08:00
Qiangjun Ran
cadbbced20
[Tests] Replace all dots with backslash dots
2016-11-03 23:44:59 -07:00
Jordan Harband
379d079c30
[Tests] Ensure color codes are stripped in alias tests.
2016-04-27 17:05:33 -07:00
Jordan Harband
44541b416f
[New] After installing, ensure that the default is set.
2016-02-04 00:26:33 -08:00
Jordan Harband
4fcf37fa29
[New] support --no-use on sourcing, in supported shells.
...
Fixes #972 .
2016-01-20 12:50:45 -08:00
Jordan Harband
472ba5fc46
Make sure sourcing nvm.sh on shells that don't support source options doesn't exit nonzero.
...
Fixes #721
2015-05-22 00:15:43 -07:00
Jordan Harband
9a4e9060d8
Don't bother testing --install option on source, or supporting it, unless the shell supports passing options upon sourcing.
2014-12-26 13:33:33 -08:00
Jordan Harband
3df0caefa5
Support --install option upon sourcing.
2014-12-26 12:19:35 -08:00
Jordan Harband
cec1c38a84
Move sourcing tests to a separate test suite.
2014-10-26 23:40:32 -07:00