Bug 50148

Summary: utilities like systemctl and journalctl should not truncate to 80 columns when stdout is not a tty
Product: systemd Reporter: Marien Zwart <marien.zwart>
Component: generalAssignee: Lennart Poettering <lennart>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Marien Zwart 2012-05-20 09:11:44 UTC
An alternate subject for this bug would be "systemd-journalctl makes it impossible to grep through my logs":

systemd-journalctl|fgrep some-search-term:

May 20 17:33:59 cyclops kernel: PM: Hibernation image not present or could ...d.

This is completely useless. Paying attention to terminal width is great if you're actually printing to a terminal. Please do what pretty much every other commandline utility does and don't truncate output when stdout is not a tty.

If this is a not-so-subtle hint that I should not be using systemd's utilities in simple shell pipelines, instead passing switches to those utilities to make them do what I need: please reconsider. It is very annoying if I'm *forced* to learn the ins and outs of specific utilities, if a bit of shell can do what I need sufficiently well.
Comment 1 Lennart Poettering 2012-07-20 12:28:08 UTC
Should be fixed in 187. Closing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.