-
-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Printed output on the screen does not match the output sent to stdout. For example:
$ diskus
23.24 MB (23,240,704 bytes)
$ diskus | cat
23240704
Now, I try to understand the purpose of this: when piping to an external program it is often useful to have the raw number, without any formatting. That's all well and good, but it is unexpected as it does not comply with conventions used by other CLI tools. Also, there is no mention of it in the documentation. Additionally, there should be a simple way to send the entire, formatted output to stdout. Typically, unless the output is dynamic (like text progress bars), what one sees on the screen should be the stdout, and if there is a need for changing the format of the output, that should be handled by the command options.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels