From 5fe3df1974d7e26d42d2729a60372e2f4c599bcd Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 28 Feb 2016 23:42:44 -0500 Subject: eshtrans/eshrt: Fix function name in __check_args() --- diff --git a/eshtrans/eshrt/eshrtbegin.esh b/eshtrans/eshrt/eshrtbegin.esh index 1848c45..95e3cdf 100644 --- a/eshtrans/eshrt/eshrtbegin.esh +++ b/eshtrans/eshrt/eshrtbegin.esh @@ -244,7 +244,7 @@ __check_args() if [ ${#} -ne ${__paramc} ]; then printf 'Error: Incorrect number of arguments to function %s\n' \ - "${__fn}()" >&2 + "${__fn_name}()" >&2 exit 1 fi unset IFS @@ -263,7 +263,7 @@ __check_args() esac if ${__err}; then printf 'Error: Argument %d of %s() %s (%s %s)\n' \ - ${__i} "${__fn}" 'has incorrect type' \ + ${__i} "${__fn_name}" 'has incorrect type' \ 'expecting' "${__param%:*}" >&2 exit 1 else -- cgit v0.9.1