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/
This commit is contained in:
parent
503640588d
commit
497ed2ce99
@ -1,7 +1,7 @@
|
|||||||
# slapt-get and slapt-src completion
|
# slapt-get and slapt-src completion
|
||||||
|
|
||||||
have slapt-get &&
|
have slapt-get &&
|
||||||
_slapt-get()
|
_slapt_get()
|
||||||
{
|
{
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
local cur prev
|
local cur prev
|
||||||
@ -66,10 +66,10 @@ _slapt-get()
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
} && complete -F _slapt-get slapt-get
|
} && complete -F _slapt_get slapt-get
|
||||||
|
|
||||||
have slapt-src &&
|
have slapt-src &&
|
||||||
_slapt-src()
|
_slapt_src()
|
||||||
{
|
{
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
local cur prev
|
local cur prev
|
||||||
@ -133,4 +133,4 @@ _slapt-src()
|
|||||||
|
|
||||||
COMPREPLY=( $( sed -ne \
|
COMPREPLY=( $( sed -ne \
|
||||||
"/^SLACKBUILD NAME: $cur/{s/^SLACKBUILD NAME: //;p}" "$slck_data" ) )
|
"/^SLACKBUILD NAME: $cur/{s/^SLACKBUILD NAME: //;p}" "$slck_data" ) )
|
||||||
} && complete -F _slapt-src slapt-src
|
} && complete -F _slapt_src slapt-src
|
||||||
|
Loading…
x
Reference in New Issue
Block a user