summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eshtrans/main.esh4
1 files changed, 3 insertions, 1 deletions
diff --git a/eshtrans/main.esh b/eshtrans/main.esh
index ac3895e..1f3983d 100644
--- a/eshtrans/main.esh
+++ b/eshtrans/main.esh
@@ -78,7 +78,9 @@ main()
if [ "x${output}" = 'x' ]; then
for input in "${@}"; do
output="${input%.esh}.sh"
- sh_codegen "$(esh_parse "${input}" <"${input}")" \
+ contents="$(cat "${input}"; printf '.')"
+ contents="${contents%.}"
+ sh_codegen "$(esh_parse "${input}" "${contents}")" \
>"${output}"
done
else