[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-235-g26ae770

Igor Murzov igor at gplsoft.org
Mon May 2 10:27:53 UTC 2011


The following commit has been merged in the master branch:
commit 497ed2ce99ad9cea3f877933f9c2d679a64692bd
Author: Igor Murzov <igor at gplsoft.org>
Date:   Mon Mar 28 20:20:02 2011 +0400

    Replace hyphens with underscores in function names
    
    It should fix:
    /etc/bash_completion.d/slapt: line 69: `_slapt-get': not a valid identifier
    Reported on LQ:
    http://www.linuxquestions.org/questions/slackware-14/bash-completion-1-3-noarch-1-causes-xorg-failure-863157/

diff --git a/completions/slapt b/completions/slapt
index 033accf..7794653 100644
--- a/completions/slapt
+++ b/completions/slapt
@@ -1,7 +1,7 @@
 # slapt-get and slapt-src completion
 
 have slapt-get &&
-_slapt-get()
+_slapt_get()
 {
     COMPREPLY=()
     local cur prev
@@ -66,10 +66,10 @@ _slapt-get()
             return 0
             ;;
     esac
-} && complete -F _slapt-get slapt-get
+} && complete -F _slapt_get slapt-get
 
 have slapt-src &&
-_slapt-src()
+_slapt_src()
 {
     COMPREPLY=()
     local cur prev
@@ -133,4 +133,4 @@ _slapt-src()
 
     COMPREPLY=( $( sed -ne \
         "/^SLACKBUILD NAME: $cur/{s/^SLACKBUILD NAME: //;p}" "$slck_data" ) )
-} && complete -F _slapt-src slapt-src
+} && complete -F _slapt_src slapt-src

-- 
bash-completion



More information about the Bash-completion-commits mailing list