From: Zbigniew Jędrzejewski-Szmek Date: Sun, 2 Aug 2015 18:22:10 +0000 (-0400) Subject: systemctl: add --value option X-Git-Tag: v231.3~256 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e55ea3f88736d82eea576b231a429733241eb85c;p=elogind.git systemctl: add --value option With this option, systemctl will only print the rhs in show: $ systemctl show -p Wants,After elogind-journald --value elogind-journald.socket ... elogind-journald-dev-log.socket ... This is useful in scripts, because the need to call awk or similar is removed. --- diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 6812ec5d4..35310cf57 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -793,7 +793,7 @@ static int print_property(const char *name, sd_bus_message *m, const char *conte break; } - r = bus_print_property(name, m, arg_all); + r = bus_print_property(name, m, false, arg_all); if (r < 0) return bus_log_parse_error(r);