strange behaviour when using (conflicting) options -q --progress

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

strange behaviour when using (conflicting) options -q --progress

Paul Slootman-5
-q seems to override -v completely, but when combined with --progress,
a single newline is output when there are no updates transferred; but if
a file *was* updated nothing at all is output.

It seems that there might be some short-circuited code when nothing is
trasferred, but that a check for quiet mode is skipped somehow.


Paul

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

Re: strange behaviour when using (conflicting) options -q --progress

Paul Slootman-5
On Wed 30 Dec 2015, Paul Slootman wrote:

> -q seems to override -v completely, but when combined with --progress,
> a single newline is output when there are no updates transferred; but if
> a file *was* updated nothing at all is output.
>
> It seems that there might be some short-circuited code when nothing is
> trasferred, but that a check for quiet mode is skipped somehow.

The bug report in Debian below may be related:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749165
Here the issue is basically that a newline is *missing* after --progress
output has been generated. The output basically is:

 0 files...^M 400 files...^M 2500 files...^M 4600 files...^Ma1/
a2/

The a1/ part overwrites the " 4600 files..." part partially.

perhaps the extraneous newline in my first part is related to this
missing newline here?


Paul

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html