summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-28 18:59:34 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-28 18:59:34 (EST)
commit9252b299841a8a2a86b9624a4368d7e8e26b9ab7 (patch)
treec998c721d2ef8f565e3d5bdacdbe96a22beeb80e
parentfd24a7a089fbdfaa848c3adf58f40f5b2b529b36 (diff)
downloadeggshell-9252b299841a8a2a86b9624a4368d7e8e26b9ab7.zip
eggshell-9252b299841a8a2a86b9624a4368d7e8e26b9ab7.tar.gz
eggshell-9252b299841a8a2a86b9624a4368d7e8e26b9ab7.tar.bz2
eshtrans/eshrt: Index local variables by SP, not function name
-rw-r--r--eshtrans/eshrt/eshrtbegin.esh4
1 files changed, 2 insertions, 2 deletions
diff --git a/eshtrans/eshrt/eshrtbegin.esh b/eshtrans/eshrt/eshrtbegin.esh
index 3717dc9..5cc3c0a 100644
--- a/eshtrans/eshrt/eshrtbegin.esh
+++ b/eshtrans/eshrt/eshrtbegin.esh
@@ -92,7 +92,7 @@ __fn_ctxsw()
unset ${__prev_vars}
;; esac
for __var in ${__fn_vars}; do
- eval "${__var}=\${__fn_vars_${__fn_name}__${__var}}"
+ eval "${__var}=\${__fn_vars_${__sp}_${__var}}"
done
}
@@ -100,7 +100,7 @@ __fn_update_vars()
{
unset IFS
for __var in ${__fn_vars}; do
- eval "__fn_vars_${__fn_name}__${__var}=\${${__var}}"
+ eval "__fn_vars_${__sp}_${__var}=\${${__var}}"
done
}