[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-358-g7bcf9a4

David Paleino dapal at debian.org
Sat Jun 11 20:06:54 UTC 2011


The following commit has been merged in the master branch:
commit 7bcf9a4f18b86c5b19406f43eb07075b5d172653
Author: Raphaël Droz <raphael.droz+floss at gmail.com>
Date:   Sat Jun 11 22:06:36 2011 +0200

    sitecopy: fixed a bug with grep and brackets: use sitecopy -v to fetch sites.

diff --git a/completions/sitecopy b/completions/sitecopy
index d0dc902..a6bb4b4 100644
--- a/completions/sitecopy
+++ b/completions/sitecopy
@@ -20,8 +20,8 @@ _sitecopy()
             ;;
         *)
             if [ -r ~/.sitecopyrc ]; then
-                COMPREPLY=( $( compgen -W "$(command grep '^["$'\t '"]*site' \
-                    ~/.sitecopyrc | awk '{print $2}')" -- "$cur" ) )
+                COMPREPLY=( $( compgen -W "$(sitecopy -v | \
+			command sed -n '/^Site:/s/Site: //p')" -- "$cur" ) )
             fi
             ;;
     esac

-- 
bash-completion



More information about the Bash-completion-commits mailing list