summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-21 15:09:12 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-21 15:09:12 (EST)
commit347e8a75fb0e121b24bf5c275f02e583431b271f (patch)
tree0f4878095cbe210ee52335fe281822139499e6a8
parent6774514bcfc8b4b447237f144dba68fed74688aa (diff)
downloadeggshell-347e8a75fb0e121b24bf5c275f02e583431b271f.zip
eggshell-347e8a75fb0e121b24bf5c275f02e583431b271f.tar.gz
eggshell-347e8a75fb0e121b24bf5c275f02e583431b271f.tar.bz2
eshtrans: Accept any input file
eshtrans is now able to compile itself.
-rw-r--r--eshtrans/main.esh8
1 files changed, 5 insertions, 3 deletions
diff --git a/eshtrans/main.esh b/eshtrans/main.esh
index c27ad2f..b0bcf53 100644
--- a/eshtrans/main.esh
+++ b/eshtrans/main.esh
@@ -113,7 +113,9 @@ main()
#try '$foo'
#try '${foo%bar baz}'
#try '$(($(foo bar) + 1))'
-try 'foo 2>bar'
-try '2>bar'
-try '2 foo'
+#try 'foo 2>bar'
+#try '2>bar'
+#try '2 foo'
+
+ sh_codegen "$(esh_parse "${1}" <"${1}")"
}