From 3bf41eba42814506934bed1bbe8ddfeabf053787 Mon Sep 17 00:00:00 2001 From: Fumiya Chiba Date: Wed, 15 Apr 2015 20:42:18 +0900 Subject: [PATCH] Use $0 to get execution path $_ is "The last argument of the previous command." (cf. man zshparam) on zsh, so SRC will be "]". --- emsdk_env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emsdk_env.sh b/emsdk_env.sh index ba66ae9..9264dfa 100755 --- a/emsdk_env.sh +++ b/emsdk_env.sh @@ -17,7 +17,7 @@ SRC="$BASH_SOURCE" if [ "$SRC" = "" ]; then - SRC="$_" + SRC="$0" fi pushd `dirname "$SRC"` > /dev/null unset SRC