From 2104a1ce075779fa6bd4497eebd91d84e97c546d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 26 Feb 2016 18:14:35 -0500 Subject: eshld/eshrt: Lose a command substitution --- (limited to 'eshld') diff --git a/eshld/eshrt.esh b/eshld/eshrt.esh index a296004..3d86b79 100644 --- a/eshld/eshrt.esh +++ b/eshld/eshrt.esh @@ -86,8 +86,8 @@ __fn_ctxsw() ${__prev_tu});; ?*) # Set static variables and function for the current TU. - eval "$(eval "printf '%s ' \ - \${__${__fn_tu}_static_var_vals}")" + eval "__val=\${__${__fn_tu}_static_var_vals}" + eval "${__val}" for __fn in $(eval printf '%s' \ "\"\${__${__fn_tu}_static_fns}\""); do eval "${__fn%:*}() { ${__fn#*:}; }" -- cgit v0.9.1