This website requires JavaScript.
Explore
Help
Register
Sign In
273345896
/
nvm
Watch
1
Star
0
Fork
You've already forked nvm
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
af8038ffec
nvm
/
test
/
fast
/
Sourcing nvm.sh should not ...
8 lines
62 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Do not modify parameters of sourcing script in zsh When sourcing a script without parameters in zsh the sourced scripts gets the same parameters as the sourcing file and is able to modify these parameters. Prevent nvm from removing all parameters of sourcing script by processing a copy of the parameters in a function.
2016-02-15 19:49:56 +08:00
#!/bin/sh
[Tests] use `-ex` option during tests when possible Relates to #1130
2016-07-07 15:00:59 +08:00
set -ex
Do not modify parameters of sourcing script in zsh When sourcing a script without parameters in zsh the sourced scripts gets the same parameters as the sourcing file and is able to modify these parameters. Prevent nvm from removing all parameters of sourcing script by processing a copy of the parameters in a function.
2016-02-15 19:49:56 +08:00
set -- yes
[Tests] Replace all dots with backslash dots
2016-11-04 13:15:18 +08:00
\. ../../nvm.sh
Do not modify parameters of sourcing script in zsh When sourcing a script without parameters in zsh the sourced scripts gets the same parameters as the sourcing file and is able to modify these parameters. Prevent nvm from removing all parameters of sourcing script by processing a copy of the parameters in a function.
2016-02-15 19:49:56 +08:00
[ "$1" = yes ]