From ef54a28f5211cca6d5bd2fc6ada2ae520ab985b7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 28 Feb 2016 23:29:30 -0500 Subject: eshtrans: Fix esh_parse() call when no -o option is given --- (limited to 'eshtrans') 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 -- cgit v0.9.1