summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-02-10 02:36:53 (EST)
committer P. J. McDermott <pj@pehjota.net>2017-02-10 02:36:53 (EST)
commit9666dfdf4ccaae54df048d69f27bba76039d4657 (patch)
tree21344bf22f4ab6700beb2f66cc30b2dca063e9a4
parent2714cfb5211b28c1c2f4e57c3cb072ed4de15209 (diff)
downloadeggshell-9666dfdf4ccaae54df048d69f27bba76039d4657.zip
eggshell-9666dfdf4ccaae54df048d69f27bba76039d4657.tar.gz
eggshell-9666dfdf4ccaae54df048d69f27bba76039d4657.tar.bz2
research/identifier-mangling.txt: New file
-rw-r--r--research/identifier-mangling.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/research/identifier-mangling.txt b/research/identifier-mangling.txt
new file mode 100644
index 0000000..af089ae
--- /dev/null
+++ b/research/identifier-mangling.txt
@@ -0,0 +1,7 @@
+prefix global identifiers with package name
+prefix static global identifiers with TU ID
+prefix function variables with SP at run time
+ probably use a register
+ __r0="$(cat foo)"
+ eval "__sp${__sp}_contents=\${__r0}"
+ don't mangle command environment variables, e.g. `IFS= read -r line`