mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
![]() Path lists in environmental variables often give special meaning to empty entries (e.g. in PATH or MANPATH). These are represented by leading or trailing colons, or by doubled colons in the middle of the list. Adjust the awk invocation to correctly deal with trailing colons by printing the separator before every field except the first, and then printing the final separator that is read from the input - this will either be a colon or the null string. This preserves leading and trailing colons in all cases while not adding extra colons in the wrong place. Add test to confirm the correct behaviour. Fixes #3144 |
||
---|---|---|
.. | ||
Aliases | ||
Listing paths | ||
Listing versions | ||
Set Colors | ||
Unit tests | ||
nvm should remove the last trailing slash in $NVM_DIR | ||
Running 'nvm alias' should create a file in the alias directory | ||
Running 'nvm current' should display current nvm environment | ||
Running 'nvm deactivate' should unset the nvm environment variables | ||
Running 'nvm install' with '--reinstall-packages-from' requires a valid version | ||
Running 'nvm install' with an invalid version fails nicely | ||
Running 'nvm unalias' should remove the alias file | ||
Running 'nvm uninstall' should remove the appropriate directory | ||
Running 'nvm uninstall' with incorrect file permissions fails nicely | ||
Running 'nvm unload' should unset all function and variables | ||
Running 'nvm use foo' where 'foo' is circular aborts | ||
Running 'nvm use iojs' uses latest io.js version | ||
Running 'nvm use system' should work as expected | ||
Running 'nvm use x' should create and change the 'current' symlink | ||
Running 'nvm use x' should not create the 'current' symlink if $NVM_SYMLINK_CURRENT is false | ||
Running 'nvm use' should drop CR char automatically | ||
setup | ||
setup_dir | ||
Sourcing nvm.sh should make the nvm command available | ||
Sourcing nvm.sh should not modify parameters of caller | ||
teardown | ||
teardown_dir |