nvm/test/fast/Sourcing nvm.sh should not modify parameters of caller
Jonas Dohse 7135873f80 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 17:49:46 +01:00

6 lines
52 B
Bash
Executable File

#!/bin/sh
set -- yes
. ../../nvm.sh
[ "$1" = yes ]