[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-23-ga29ed87
Guillaume Rousse
Guillaume.Rousse at inria.fr
Wed Feb 23 20:42:16 UTC 2011
The following commit has been merged in the master branch:
commit b0e7111397e57af08e864e4a97395c32a5f1c3d4
Author: Guillaume Rousse <Guillaume.Rousse at inria.fr>
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
More information about the Bash-completion-commits
mailing list