[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-476-gb377dc5

Ville Skyttä ville.skytta at iki.fi
Tue Oct 25 17:21:05 UTC 2011


The following commit has been merged in the master branch:
commit b377dc5de84913b69efa325590e9d0bb97d02128
Merge: c922626d4b9b78d266c8336c702b4c5e9a0325d4 3b029892f6f9db3b7210a7f66d636be3e5ec5fa2
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Oct 25 20:18:42 2011 +0300

    Merge branch 'dynamic-loading'

diff --combined completions/cpan2dist
index 4ec33c0,529bf01..84ec3b6
--- a/completions/cpan2dist
+++ b/completions/cpan2dist
@@@ -1,7 -1,5 +1,5 @@@
  # bash completion for cpan2dist
  
- have cpan2dist || return
- 
  _cpan2dist()
  {
      local cur prev words cword
@@@ -30,8 -28,9 +28,8 @@@
              [[ -d "$dir" && -r "$dir/02packages.details.txt.gz" ]] && \
                  packagelist="$dir/02packages.details.txt.gz"
          done
 -        COMPREPLY=( $( zgrep "^${cur//-/::}" \
 -            $packagelist 2>/dev/null \
 -            | awk '{print $1}' | sed -e 's/::/-/g' ) )
 +        [[ $packagelist ]] && COMPREPLY=( $( zgrep "^${cur//-/::}" \
 +            $packagelist 2>/dev/null | awk '{print $1}' | sed -e 's/::/-/g' ) )
      fi
  } &&
  complete -F _cpan2dist -o default cpan2dist

-- 
bash-completion



More information about the Bash-completion-commits mailing list