#160 Switch back to using readline for writing stdin to the temporary file, because it actually works on all machines.

This commit is contained in:
w0rp
2016-11-01 20:17:13 +00:00
parent 4088347901
commit f03fb64e51
2 changed files with 6 additions and 9 deletions

View File

@@ -36,6 +36,8 @@ temp_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'ale_linters')
temp_file="$temp_dir/file.d"
trap 'rm -r "$temp_dir"' EXIT
cp /dev/stdin "$temp_file"
while read -r; do
echo "$REPLY" >> "$temp_file"
done
dmd $(import_line_options) "$@" "$temp_file"