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:
parent
af861917c5
commit
66e10d45d9
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user