Hola MatÃas. :-)
Matias Fonzo wrote:
Do you have any suggestions about what option name to use and how to
achieve the goal above (maybe writing the progress info directly to
the controlling terminal to avoid mangling stderr)? Thanks.
fsck(8) from e2fsck progs have:
-C [ fd ]
Thanks for the suggestion.
After searching among the options used by GNU programs, I think I could
use '-g, --progress' if finally a new option is needed.
But the true problem is avoiding mangling the output sent to stderr.
See for example what happens currently with progress output during
compression:
lzip -0cvv busybox-1.27.0.tar 2>&1 >/dev/null | less
For decompression it would be worse because:
1) The progress ouput would be inserted between the dictionary size and
the rest of the --verbose output.
2) In multimember files, lzip shows --verbose output for each member
separately.
Maybe the progress output could be shown only when stderr is a terminal?
Best regards,
Antonio.
_______________________________________________
Lzip-bug mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lzip-bug