diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2020-04-17 11:40:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-04-17 19:15:49 +0200 |
commit | 1cabd2d0c56b7de73e4a4fb645f3bbed4a528d2c (patch) | |
tree | d51abd3c61a38ce23442937804e4aceb0da058b3 /shell-completion/bash/systemd-run | |
parent | Merge pull request #15459 from keszybz/remove-seat_can_multi_session (diff) | |
download | systemd-1cabd2d0c56b7de73e4a4fb645f3bbed4a528d2c.tar.xz systemd-1cabd2d0c56b7de73e4a4fb645f3bbed4a528d2c.zip |
systemctl: hide first column with --plain instead of --no-legend
Hiding the first column, which may contain bullet circles, with --no-legend
is undocumented and potentially unexpected. On the other hand, not printing
bullet circles with --plain is documented so hiding the column with that
switch is sensible.
The combination "--full --no-legend --no-pager --plain" is appropriate for
automated processing of systemctl output.
Diffstat (limited to 'shell-completion/bash/systemd-run')
-rw-r--r-- | shell-completion/bash/systemd-run | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/systemd-run b/shell-completion/bash/systemd-run index 71692aa19c..88f4443ad9 100644 --- a/shell-completion/bash/systemd-run +++ b/shell-completion/bash/systemd-run @@ -18,7 +18,7 @@ __systemctl() { local mode=$1; shift 1 - systemctl $mode --full --no-legend "$@" + systemctl $mode --full --no-legend --no-pager --plain "$@" } __get_slice_units () { __systemctl $1 list-units --all -t slice \ |