*function-body: Fix the absolute-path plugins

https://github.com/zdharma/zinit/issues/359
This commit is contained in:
Sebastian Gniazdowski 2020-06-10 18:43:18 +02:00
parent 2fa561e439
commit 6a3d52abe8
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
# FUNCTION: .za-bgn-bin-or-src-function-body
# Returns the body of the function wrapping a binary
local name="$2" bin="$3" dir="$4"
local name="$2" bin="$3" dir="${4#%}"
integer run_type="$1" set_gem_home="$5" \
set_node_path="$6" set_cwd="$7" \
use_all_null="$8" use_err_null="$9" use_out_null="$10"

View file

@ -3,7 +3,7 @@
#
# Returns the body of the function wrapping a function
local name="$1" target_func="$2" dir="$3"
local name="$1" target_func="$2" dir="${3#%}"
integer set_gem_home="$4" set_node_path="$5" set_cwd="$6" \
use_all_null="$7" use_err_null="$8" use_out_null="$9"