Bug 14411 - --out-format is broken when using embedded whitespace (newline, tab)
Summary: --out-format is broken when using embedded whitespace (newline, tab)
Status: NEW
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-16 20:34 UTC by Evan Harris
Modified: 2020-06-16 20:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Harris 2020-06-16 20:34:27 UTC
When trying to use --out-format to emulate some info provided by --progress, I discovered that it is impossible to make multiline log formats (it removes/ignores newlines completely), and also changes tab characters into the character sequence "\#012" plus the wanted tab.

Example (with tabs shown as \t):

> rsync -a '--out-format=%n
\t%l %b' blah/ blah2/
file1\#012      21310 21353
file2\#012      10654 10697