The following commit has been merged in the master branch:
commit b0e7111397e57af08e864e4a97395c32a5f1c3d4
Author: Guillaume Rousse <[email protected]>
Date: Wed Feb 23 21:18:18 2011 +0100
use for subshell, instead of backquotes
diff --git a/completions/puppet b/completions/puppet
index fe14909..c336345 100644
--- a/completions/puppet
+++ b/completions/puppet
@@ -21,16 +21,16 @@ _puppet_certs()
PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type puppetca &>/dev/null &&
puppetca=puppetca
if [[ "$1" = "--all" ]]; then
- cert_list=`$puppetca --list --all | sed -e
's/^[+-]\?\s*\(\S\+\)\s\+.*$/\1/'`
+ cert_list=$( $puppetca --list --all | sed -e
's/^[+-]\?\s*\(\S\+\)\s\+.*$/\1/' )
else
- cert_list=`$puppetca --list`
+ cert_list=$( $puppetca --list )
fi
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$cert_list" -- "$cur" ) )
}
_puppet_types()
{
- puppet_types=`puppet describe --list | sed -e 's/^\(\S\+\).*$/\1/'`
+ puppet_types=$( puppet describe --list | sed -e 's/^\(\S\+\).*$/\1/' )
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$puppet_types" -- "$cur" ) )
}
@@ -39,7 +39,7 @@ _puppet_references()
local puppetdoc="puppet doc"
PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type puppetdoc &>/dev/null &&
puppetdoc=puppetdoc
- puppet_doc_list=`$puppetdoc --list | sed -e 's/^\(\S\+\).*$/\1/'`
+ puppet_doc_list=$( $puppetdoc --list | sed -e 's/^\(\S\+\).*$/\1/' )
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$puppet_doc_list" -- "$cur" )
)
}
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits