From f88637274991e4d427da6dae3ef0e181f0e1d9a1 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 17 Oct 2012 17:55:02 -0500 Subject: functions.sh: do not hard code path in e* wrapper functions We should use the "command" shell builtin to execute a binary from within the wrapper with the same name. Hard coding the path to the binary makes our test suite fail. --- sh/functions.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/functions.sh.in b/sh/functions.sh.in index b00ec68e..cdd88563 100644 --- a/sh/functions.sh.in +++ b/sh/functions.sh.in @@ -105,7 +105,7 @@ else # the last ecmd for _e in ebegin eend error errorn einfo einfon ewarn ewarnn ewend \ vebegin veend veinfo vewarn vewend; do - eval "$_e() { local _r; @LIBEXECDIR@/bin/$_e \"\$@\"; _r=\$?; \ + eval "$_e() { local _r; command $_e \"\$@\"; _r=\$?; \ export EINFO_LASTCMD=$_e; return \$_r; }" done unset _e -- cgit v1.2.3