Rev 4850: (mbp) fix bash completion of options (Jan Urbański in file:///home/pqm/archives/thelove/bzr/2.1/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Mon Jul 12 11:35:51 BST 2010


At file:///home/pqm/archives/thelove/bzr/2.1/

------------------------------------------------------------
revno: 4850 [merge]
revision-id: pqm at pqm.ubuntu.com-20100712103549-xsbgzawpwahtlxc1
parent: pqm at pqm.ubuntu.com-20100702165222-fpaz3hd04sh5dze2
parent: wulczer at wulczer.org-20100711140346-s16nylt064gtn2j2
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: 2.1
timestamp: Mon 2010-07-12 11:35:49 +0100
message:
  =?utf-8?q?=28mbp=29_fix_bash_completion_of_options_=28Jan_Urba=C5=84ski?=
   =?utf-8?q?=29?=
modified:
  contrib/bash/bzr.simple        bzr-20050503074841-dfc41af1e02111f9
=== modified file 'contrib/bash/bzr.simple'
--- a/contrib/bash/bzr.simple	2007-06-06 19:44:39 +0000
+++ b/contrib/bash/bzr.simple	2010-07-11 14:03:46 +0000
@@ -14,11 +14,11 @@
     cur=${COMP_WORDS[COMP_CWORD]}
     prev=${COMP_WORDS[COMP_CWORD-1]}
     if [ $COMP_CWORD -eq 1 ]; then
-        COMPREPLY=( $( compgen -W "$(_bzr_commands)" $cur ) )
+        COMPREPLY=( $( compgen -W "$(_bzr_commands)" -- "$cur" ) )
     elif [ $COMP_CWORD -eq 2 ]; then
         case "$prev" in 
         help)
-            COMPREPLY=( $( compgen -W "$(_bzr_commands) commands" $cur ) )
+            COMPREPLY=( $( compgen -W "$(_bzr_commands) commands" -- "$cur" ) )
             ;;
         esac
     fi 




More information about the bazaar-commits mailing list