1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

bash-completion: circumvent aliases for 'ls'

This commit is contained in:
Lia Lenckowski 2021-09-17 23:08:19 +02:00 committed by Yu Watanabe
parent af861917c5
commit 66e10d45d9
4 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}