mirror of
https://github.com/systemd/systemd.git
synced 2025-11-16 04:24:15 +03:00
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.
This commit is contained in:
committed by
Lennart Poettering
parent
75dff0f910
commit
1cabd2d0c5
@@ -30,7 +30,7 @@ __get_users() {
|
||||
|
||||
__get_slices() {
|
||||
local a b
|
||||
systemctl list-units -t slice --no-legend --no-pager | { while read a b; do echo " $a"; done; };
|
||||
systemctl list-units -t slice --no-legend --no-pager --plain | { while read a b; do echo " $a"; done; };
|
||||
}
|
||||
|
||||
__get_machines() {
|
||||
|
||||
Reference in New Issue
Block a user