X-Git-Url: https://git.tld-linux.org/?p=packages%2Fbash-completion.git;a=blobdiff_plain;f=bash-completion-tld.patch;fp=bash-completion-tld.patch;h=055b42622e8b410283458d2a455b467527d56145;hp=0000000000000000000000000000000000000000;hb=a8a0b59e2a3108c48b430f29480b5efad6a3f8cb;hpb=8281f5ad2e97f1d5c133672e492baf934e4ec9db diff --git a/bash-completion-tld.patch b/bash-completion-tld.patch new file mode 100644 index 0000000..055b426 --- /dev/null +++ b/bash-completion-tld.patch @@ -0,0 +1,14 @@ +diff -ur bash-completion-2.1.orig/bash_completion bash-completion-2.1/bash_completion +--- bash-completion-2.1.orig/bash_completion 2013-04-05 10:55:51.000000000 +0000 ++++ bash-completion-2.1/bash_completion 2015-08-03 08:29:53.003582721 +0000 +@@ -858,8 +858,8 @@ + COMPREPLY=( $( compgen -W "$( printf '%s\n' \ + /etc/sysconfig/network/ifcfg-* | \ + sed -ne 's|.*ifcfg-\(.*\)|\1|p' )" -- "$cur" ) ) +- elif [[ -f /etc/pld-release ]]; then +- # PLD Linux ++ elif [[ -f /etc/tld-release ]]; then ++ # TLD Linux + COMPREPLY=( $( compgen -W "$( command ls -B \ + /etc/sysconfig/interfaces | \ + sed -ne 's|.*ifcfg-\(.*\)|\1|p' )" -- "$cur" ) )