From: Johannes Sixt Date: Wed, 29 May 2013 06:17:50 GMT Subject: Re: [PATCH] completion: zsh: improve bash script loading Message-ID: <51A59D8E.1040502@viscovery.net> In-Reply-To: <1369797840-3103-1-git-send-email-felipe.contreras@gmail.com> Am 5/29/2013 5:24, schrieb Felipe Contreras: > +if [ -z "$script" ]; then > + local -a locations > + locations=( > + '/etc/bash_completion.d/git' # fedora, old debian > + '/usr/share/bash-completion/completions/git' # arch, ubuntu, new debian > + '/usr/share/bash-completion/git' # gentoo > + $(dirname ${funcsourcetrace[1]%:*})/git-completion.bash > + ) Won't you need local e here, or does it not matter? > + for e in $locations; do > + test -f $e && script="$e" && break > + done > +fi -- Hannes