diff --git "a/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." "b/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." index dfba0da..be0dddb 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." +++ "b/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." @@ -2,8 +2,12 @@ . ../../../nvm.sh -mkdir ../../../v0.0.{1,3,9} -mkdir ../../../v0.3.{1,3,9} +mkdir ../../../v0.0.1 +mkdir ../../../v0.0.3 +mkdir ../../../v0.0.9 +mkdir ../../../v0.3.1 +mkdir ../../../v0.3.3 +mkdir ../../../v0.3.9 # The result should contain the version numbers. nvm ls | grep v0.0.1 && diff --git "a/test/fast/Running \"nvm current\" should display current nvm environment." "b/test/fast/Running \"nvm current\" should display current nvm environment." index 09b8931..40d528f 100755 --- "a/test/fast/Running \"nvm current\" should display current nvm environment." +++ "b/test/fast/Running \"nvm current\" should display current nvm environment." @@ -3,4 +3,4 @@ die () { echo $@ ; exit 1; } . ../../nvm.sh -[[ $(nvm current) == *"current"* ]] || die "Failed to find current version" +[ `expr "$(nvm current)" : ".*current"` != 0 ] || die "Failed to find current version" \ No newline at end of file diff --git "a/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." "b/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." index 0f2ad3b..813f226 100755 --- "a/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." +++ "b/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." @@ -4,11 +4,11 @@ mkdir -p ../../v0.2.3 die () { echo $@ ; exit 1; } -[[ $PATH != *v0.2.3/*/bin* ]] || echo "WARNING: Unexpectedly found v0.2.3 already active" >&2 +[ `expr $PATH : ".*v0.2.3/.*/bin"` == 0 ] || echo "WARNING: Unexpectedly found v0.2.3 already active" >&2 . ../../nvm.sh nvm use v0.2.3 && -[[ $PATH == *v0.2.3/*/bin* ]] || die "Failed to activate v0.2.3" +[ `expr $PATH : ".*v0.2.3/.*/bin"` != 0 ] || die "Failed to activate v0.2.3" nvm deactivate && -[[ $PATH != *v0.2.3/*/bin* ]] || die "Failed to deactivate v0.2.3" +[ `expr $PATH : ".*v0.2.3/.*/bin"` != 0 ] || die "Failed to deactivate v0.2.3"