From 58fded07a19e6100e307bba9de8e72854b57f1c4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 28 Feb 2016 01:47:19 -0500 Subject: Merge branch 'feature/no-dd-lexer' --- (limited to 'eshtrans/main.esh') diff --git a/eshtrans/main.esh b/eshtrans/main.esh index 7e0cb8c..ac3895e 100644 --- a/eshtrans/main.esh +++ b/eshtrans/main.esh @@ -88,9 +88,13 @@ main() fi input="${1}" if [ "x${output}" = 'x-' ]; then - sh_codegen "$(esh_parse "${input}" <"${input}")" + contents="$(cat "${input}"; printf '.')" + contents="${contents%.}" + sh_codegen "$(esh_parse "${input}" "${contents}")" else - sh_codegen "$(esh_parse "${input}" <"${input}")" \ + contents="$(cat "${input}"; printf '.')" + contents="${contents%.}" + sh_codegen "$(esh_parse "${input}" "${contents}")" \ >"${output}" fi fi -- cgit v0.9.1