aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-12-18 08:59:12 -0800
committerTim Harder <radhermit@gentoo.org>2014-12-18 08:59:12 -0800
commit5b7a42efa2d1d6073fdc6cce2dda55f433aa60ef (patch)
treee93a9222d51536a0454d516642a7cadac04467ee
parentuse consistent indentation (2 spaces) and add vim modelines (diff)
downloadzsh-completion-5b7a42efa2d1d6073fdc6cce2dda55f433aa60ef.tar.gz
zsh-completion-5b7a42efa2d1d6073fdc6cce2dda55f433aa60ef.tar.bz2
zsh-completion-5b7a42efa2d1d6073fdc6cce2dda55f433aa60ef.zip
_gentoo_packages: replace backtick usage with $()
-rw-r--r--src/_gentoo_packages10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/_gentoo_packages b/src/_gentoo_packages
index fd1dbcd..e96eac8 100644
--- a/src/_gentoo_packages
+++ b/src/_gentoo_packages
@@ -181,9 +181,9 @@ _gentoo_packages_update_active_useflag(){
local flags USE
var=USE
[[ -z ${(P)var} && -r /etc/portage/make.conf ]] &&
- local $var="`. /etc/portage/make.conf 2>/dev/null; echo ${(P)var}`"
+ local $var="$(. /etc/portage/make.conf 2>/dev/null; echo ${(P)var})"
[[ -z ${(P)var} && -r /etc/make.conf ]] &&
- local $var="`. /etc/make.conf 2>/dev/null; echo ${(P)var}`"
+ local $var="$(. /etc/make.conf 2>/dev/null; echo ${(P)var})"
flags=(${${${=USE}%-*}%\\*})
compadd $flags
}
@@ -270,11 +270,11 @@ _gentoo_packages_update_available_versions(){
#Function to show tbz2 files available
_gentoo_packages_update_binary() {
[[ -z $PKGDIR && -r /etc/portage/make.conf ]] &&
- local PKGDIR="`. /etc/portage/make.conf 2>/dev/null; echo $PKGDIR`"
+ local PKGDIR="$(. /etc/portage/make.conf 2>/dev/null; echo $PKGDIR)"
[[ -z $PKGDIR && -r /etc/make.conf ]] &&
- local PKGDIR="`. /etc/make.conf 2>/dev/null; echo $PKGDIR`"
+ local PKGDIR="$(. /etc/make.conf 2>/dev/null; echo $PKGDIR)"
[[ -z $PKGDIR && -r /usr/share/portage/config/make.globals ]] &&
- local PKGDIR="`. /usr/share/portage/config/make.globals 2>/dev/null; echo $PKGDIR`"
+ local PKGDIR="$(. /usr/share/portage/config/make.globals 2>/dev/null; echo $PKGDIR)"
# this doesn't take care of ${PORTAGE_BINHOST}. If Gentoo official
# binary mirror will be available we should rewrite it accordingly.