summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorLia Lenckowski <lialenck@protonmail.com>2021-09-17 23:08:19 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-09-18 15:19:40 +0900
commit66e10d45d9021c82939f0c1ccef02711f714b79d (patch)
tree7df95deea306b623c6cd5d1c22b7e105c527797f /shell-completion
parentaf861917c5118cb9f1490f407d86f40fd5e01437 (diff)
downloadsystemd-66e10d45d9021c82939f0c1ccef02711f714b79d.tar.gz
bash-completion: circumvent aliases for 'ls'
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/resolvectl2
-rw-r--r--shell-completion/bash/systemd-nspawn2
-rw-r--r--shell-completion/bash/systemd-resolve2
-rw-r--r--shell-completion/bash/timedatectl2
4 files changed, 4 insertions, 4 deletions
diff --git a/shell-completion/bash/resolvectl b/shell-completion/bash/resolvectl
index 646a197a13..cbe2aa4870 100644
--- a/shell-completion/bash/resolvectl
+++ b/shell-completion/bash/resolvectl
@@ -25,7 +25,7 @@ __contains_word () {
__get_interfaces(){
local name
- for name in $(cd /sys/class/net && ls); do
+ for name in $(cd /sys/class/net && command ls); do
[[ "$name" != "lo" ]] && echo "$name"
done
}
diff --git a/shell-completion/bash/systemd-nspawn b/shell-completion/bash/systemd-nspawn
index 8c0abd2cd5..f367c7d14c 100644
--- a/shell-completion/bash/systemd-nspawn
+++ b/shell-completion/bash/systemd-nspawn
@@ -45,7 +45,7 @@ __get_env() {
__get_interfaces(){
local name
- for name in $(cd /sys/class/net && ls); do
+ for name in $(cd /sys/class/net && command ls); do
[[ "$name" != "lo" ]] && echo "$name"
done
}
diff --git a/shell-completion/bash/systemd-resolve b/shell-completion/bash/systemd-resolve
index b165010b85..a52a610a32 100644
--- a/shell-completion/bash/systemd-resolve
+++ b/shell-completion/bash/systemd-resolve
@@ -25,7 +25,7 @@ __contains_word () {
__get_interfaces(){
local name
- for name in $(cd /sys/class/net && ls); do
+ for name in $(cd /sys/class/net && command ls); do
[[ "$name" != "lo" ]] && echo "$name"
done
}
diff --git a/shell-completion/bash/timedatectl b/shell-completion/bash/timedatectl
index 29dc27b39c..685b79d7ea 100644
--- a/shell-completion/bash/timedatectl
+++ b/shell-completion/bash/timedatectl
@@ -32,7 +32,7 @@ __get_machines() {
__get_interfaces(){
local name
- for name in $(cd /sys/class/net && ls); do
+ for name in $(cd /sys/class/net && command ls); do
[[ "$name" != "lo" ]] && echo "$name"
done
}