Permalink
Browse files

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/
  • Loading branch information...
1 parent 5036405 commit 497ed2ce99ad9cea3f877933f9c2d679a64692bd @GArik committed Mar 28, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 completions/slapt
View
@@ -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

0 comments on commit 497ed2c

Please sign in to comment.