summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-26 18:14:35 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-26 18:14:35 (EST)
commit2104a1ce075779fa6bd4497eebd91d84e97c546d (patch)
tree3b33d1de0f650c737e501ca35c98b9126a55c4c5
parent3a841cad295e83aec93d41b548f5e020c4803ce4 (diff)
downloadeggshell-2104a1ce075779fa6bd4497eebd91d84e97c546d.zip
eggshell-2104a1ce075779fa6bd4497eebd91d84e97c546d.tar.gz
eggshell-2104a1ce075779fa6bd4497eebd91d84e97c546d.tar.bz2
eshld/eshrt: Lose a command substitution
-rw-r--r--eshld/eshrt.esh4
1 files changed, 2 insertions, 2 deletions
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#*:}; }"