The old read -r line approach buffered until \n, but rsync --info=progress2
uses \r without \n for progress updates. Using tee(1) preserves \r
characters and writes through immediately for real-time progress.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>