diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-12-20 23:44:33 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-12-20 23:44:33 +0200 |
commit | c755d7becc9b73f7ab9911c8b624e17171bf7e5f (patch) | |
tree | b6b95d39b5960a6a7ba9fdf2e95548d07b704316 /bash_completion | |
parent | 40a83563fd8ba532e080074b1de8b80121f33dfe (diff) | |
download | bash-completion-c755d7becc9b73f7ab9911c8b624e17171bf7e5f.tar.gz |
Replace some uses of ls with printf.
Diffstat (limited to 'bash_completion')
-rw-r--r-- | bash_completion | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash_completion b/bash_completion index f33f85a9..9c3e086a 100644 --- a/bash_completion +++ b/bash_completion @@ -470,7 +470,7 @@ _configured_interfaces() /etc/network/interfaces )" -- "$cur" ) ) elif [ -f /etc/SuSE-release ]; then # SuSE system - COMPREPLY=( $( compgen -W "$( command ls \ + COMPREPLY=( $( compgen -W "$( printf '%s\n' \ /etc/sysconfig/network/ifcfg-* | \ sed -ne 's|.*ifcfg-\(.*\)|\1|p' )" -- "$cur" ) ) elif [ -f /etc/pld-release ]; then @@ -480,7 +480,7 @@ _configured_interfaces() sed -ne 's|.*ifcfg-\(.*\)|\1|p' )" -- "$cur" ) ) else # Assume Red Hat - COMPREPLY=( $( compgen -W "$( command ls \ + COMPREPLY=( $( compgen -W "$( printf '%s\n' \ /etc/sysconfig/network-scripts/ifcfg-* | \ sed -ne 's|.*ifcfg-\(.*\)|\1|p' )" -- "$cur" ) ) fi |