Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/blazeblogger/files: blazeblogger-1.2.0-bash-completion.patch
Date: Fri, 22 Jun 2012 06:20:01
Message-Id: 20120622061951.7316B2004C@flycatcher.gentoo.org
xmw         12/06/22 06:19:51

  Added:                blazeblogger-1.2.0-bash-completion.patch
  Log:
  Fix bash-completion (patch provided by poletti.marco@×××××.com on bug 417953)
  
  (Portage version: 2.1.10.65/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  www-apps/blazeblogger/files/blazeblogger-1.2.0-bash-completion.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/blazeblogger/files/blazeblogger-1.2.0-bash-completion.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/blazeblogger/files/blazeblogger-1.2.0-bash-completion.patch?rev=1.1&content-type=text/plain

Index: blazeblogger-1.2.0-bash-completion.patch
===================================================================
--- blazeblogger-1.2.0/unix/bash_completion
+++ blazeblogger-1.2.0/unix/bash_completion
@@ -103,7 +103,7 @@
       # argument completions
       case "$prev" in
         -b|--blogdir)
-          COMPREPLY=( $(compgen -d -- ${cur}) )
+	  _filedir -d
           return 0
           ;;
         *)
@@ -131,7 +131,7 @@
       # argument completions
       case "$prev" in
         -b|--blogdir)
-          COMPREPLY=( $(compgen -d -- ${cur}) )
+	  _filedir -d
           return 0
           ;;
         -E|--editor)
@@ -166,7 +166,7 @@
       # argument completions
       case "$prev" in
         -b|--blogdir)
-          COMPREPLY=( $(compgen -d -- ${cur}) )
+          _filedir -d
           return 0
           ;;
         -d|--date)
@@ -187,7 +187,7 @@
         COMPREPLY=( $(compgen -W "${specopts}" -- ${cur}) )
         return 0
       else
-        COMPREPLY=( $(compgen -f -- ${cur}) )
+        _filedir
         return 0
       fi
       ;;
@@ -200,7 +200,7 @@
       # argument completions
       case "$prev" in
         -b|--blogdir)
-          COMPREPLY=( $(compgen -d -- ${cur}) )
+          _filedir -d
           return 0
           ;;
         -E|--editor)
@@ -227,7 +227,7 @@
       # argument completions
       case "$prev" in
         -b|--blogdir)
-          COMPREPLY=( $(compgen -d -- ${cur}) )
+          _filedir -d
           return 0
           ;;
         *)
@@ -252,7 +252,7 @@
       # argument completions
       case "$prev" in
         -b|--blogdir)
-          COMPREPLY=( $(compgen -d -- ${cur}) )
+          _filedir -d
           return 0
           ;;
         -d|--day)
@@ -292,7 +292,7 @@
       # argument completions
       case "$prev" in
         -b|--blogdir|-d|--destdir)
-          COMPREPLY=( $(compgen -d -- ${cur}) )
+          _filedir -d
           return 0
           ;;
         *)
@@ -315,7 +315,7 @@
       # argument completions
       case "$prev" in
         -b|--blogdir)
-          COMPREPLY=( $(compgen -d -- ${cur}) )
+          _filedir -d
           return 0
           ;;
         -n|--number)