diff options
Diffstat (limited to 'eshtrans')
-rw-r--r-- | eshtrans/main.esh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/eshtrans/main.esh b/eshtrans/main.esh index 588ca1d..ac3895e 100644 --- a/eshtrans/main.esh +++ b/eshtrans/main.esh @@ -88,10 +88,14 @@ main() fi input="${1}" if [ "x${output}" = 'x-' ]; then - sh_codegen "$(esh_parse "${input}" "$(cat "${input}")")" + contents="$(cat "${input}"; printf '.')" + contents="${contents%.}" + sh_codegen "$(esh_parse "${input}" "${contents}")" else - sh_codegen "$(esh_parse "${input}" \ - "$(cat "${input}")")" >"${output}" + contents="$(cat "${input}"; printf '.')" + contents="${contents%.}" + sh_codegen "$(esh_parse "${input}" "${contents}")" \ + >"${output}" fi fi } |