summaryrefslogtreecommitdiff
path: root/src/pre
diff options
context:
space:
mode:
Diffstat (limited to 'src/pre')
-rwxr-xr-xsrc/pre5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pre b/src/pre
index d593ad2..ec212d1 100755
--- a/src/pre
+++ b/src/pre
@@ -27,7 +27,4 @@ shift $((OPTIND - 1))
PREFIX="${1:-}"
eval "$(assert-arg -- "$PREFIX" 'PREFIX')"
-# FIXME: using "while" so we avoid GNU sed's buffering
-while read -r line; do
- printf '%s%s %s\n' "$PREFIX" "$SEP" "$line"
-done
+stdbuf -oL sed "s/^/$PREFIX$SEP /"