From f03fb64e5187aad15cf4abcb9bc8f9a5330225cd Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 1 Nov 2016 20:17:13 +0000 Subject: #160 Switch back to using readline for writing stdin to the temporary file, because it actually works on all machines. --- dmd-wrapper | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dmd-wrapper') diff --git a/dmd-wrapper b/dmd-wrapper index 0a643500..2db358e7 100755 --- a/dmd-wrapper +++ b/dmd-wrapper @@ -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" -- cgit v1.2.3