@@ 44,5 44,5 @@ while read -rs line; do # fully line-based operation
outbuf="${outbuf}${c}" # save the character itself
fi
done
- [[ ! -z "$outbuf" ]] && printf "$fmtstr" '' "$outbuf" ''
+ [[ ! -z "$outbuf" ]] && printf "$fmtstr" '' "$outbuf" '' # output the last unprocessed chunk
done