4 ms·
yum does the same thing. I actually looked at the code and it always assumes the output width is 80 characters and wraps or center…truncates if output isn't a
by thwarted 12y ago
yum does the same thing. I actually looked at the code and it always assumes the output width is 80 characters and wraps or center…truncates if output isn't a terminal. It also doesn't properly sort its output, so you're tempted to use `yum search | sort`, which ends up with indented lines at the top of the output.
Of course, the recommended thing to do is use a different program for scripts/pipelines rather than yum, so now there are two different interfaces that need to be remembered. yum looks like a terminal-friendly program, but actually isn't.
https://bugzilla.redhat.com/show_bug.cgi?id=584525 https://bugzilla.redhat.com/show_bug.cgi?id=584525
https://bugzilla.redhat.com/show_bug.cgi?id=986740 https://bugzilla.redhat.com/show_bug.cgi?id=986740