[PATCH 4/4] systemctl: default to --full if stdout is not tty

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Sep 7 01:30:53 PDT 2010


Closes https://bugzilla.redhat.com/show_bug.cgi?id=626891
and duplicate https://bugs.freedesktop.org/show_bug.cgi?id=29916.
---
 src/systemctl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/systemctl.c b/src/systemctl.c
index 0832dfa..3c4dc91 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -4761,6 +4761,8 @@ static int systemctl_main(DBusConnection *bus, int argc, char *argv[], DBusError
         assert(argv);
         assert(error);
 
+        arg_full = !on_tty();
+
         left = argc - optind;
 
         if (left <= 0)
-- 
1.7.1



More information about the systemd-devel mailing list