]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Merge pull request #10221 from lucaswerkmeister/bash-completion
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Dec 2018 13:47:12 +0000 (14:47 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Dec 2018 13:53:58 +0000 (14:53 +0100)
Merged locally to resolve a conflict. The redirection of error is required to
suppress "# Not showing unlisted system calls, ...".

1  2 
shell-completion/bash/systemd-analyze

index 6c8c0c14c66b7b2bef6dbeb2e89be5799e7bd032,c650940bcf0deb3ca7a90ecf42905e9c80827602..a4e506d9df29e23ba630fac181fbb7a75a89b670
@@@ -30,13 -30,17 +30,22 @@@ __get_machines() 
          machinectl list --no-legend --no-pager | { while read a b; do echo " $a"; done; };
  }
  
 +__get_services() {
 +        systemctl list-units --no-legend --no-pager -t service --all $1 | \
 +                { while read -r a b c; do [[ $b == "loaded" ]]; echo " $a"; done }
 +}
 +
+ __get_syscall_sets() {
+         local line
+         systemd-analyze syscall-filter --no-pager | while IFS= read -r line; do
+                 if [[ $line == @* ]]; then
+                         printf '%s\n' "$line"
+                 fi
+         done
+ }
  _systemd_analyze() {
 -        local i verb comps
 +        local i verb comps mode
          local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
  
          local -A OPTS=(