From 60b89abd9c55d70a3a621e1563feb1afe36798a4 Mon Sep 17 00:00:00 2001 From: purpleP Date: Sat, 5 Nov 2016 23:43:57 +0300 Subject: changed while read -r loop to cat > for portability and simplicity (#165) * changed while read -r loop to cat > for portability and simplicity * typo fix --- stdin-wrapper | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'stdin-wrapper') diff --git a/stdin-wrapper b/stdin-wrapper index f81f4617..de4af0e5 100755 --- a/stdin-wrapper +++ b/stdin-wrapper @@ -16,8 +16,6 @@ temp_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'ale_linter') temp_file="$temp_dir/file$file_extension" trap 'rm -r "$temp_dir"' EXIT -while read -r; do - echo "$REPLY" >> "$temp_file" -done +cat > "$temp_file" "$@" "$temp_file" -- cgit v1.2.3