[arch-projects] [INITSCRIPTS][PATCH] changing _rd.d to _rc_d to avoid: /etc/bash_completion.d/rc.d: line 19: `_rc.d': not a valid identifier

Sebastien Luttringer seblu at seblu.net
Thu Jul 7 06:43:45 EDT 2011


From: derhoch <derhoch at googlemail.com>

Signed-off-by: Sebastien Luttringer <seblu at seblu.net>
---
 bash-completion |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bash-completion b/bash-completion
index e63e880..d78484e 100644
--- a/bash-completion
+++ b/bash-completion
@@ -1,6 +1,6 @@
 # rc.d bash completion by Seblu <seblu at seblu.net>
 
-_rc.d ()
+_rc_d()
 {
 	local action cur prev
 	action="help list start stop reload restart"
@@ -19,6 +19,6 @@ _rc.d ()
 		COMPREPLY=($(cd /etc/rc.d && compgen -f -X 'functions*' "$cur"|sort))
 	fi
 }
-complete -F _rc.d rc.d
+complete -F _rc_d rc.d
 
 # vim: set ts=2 sw=2 ft=sh noet:
-- 
Sebastien "Seblu" Luttringer



More information about the arch-projects mailing list