diff options
Diffstat (limited to 'eshtrans/main.esh')
-rw-r--r-- | eshtrans/main.esh | 8 |
1 files changed, 6 insertions, 2 deletions
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 |