1 match Usage filters from PLD Linux initscripts
2 sample initscript template can be found from here:
4 http://svn.pld-linux.org/cgi-bin/viewsvn/rc-scripts/trunk/rc.d/init.d/template.init?rev=HEAD&view=log
7 Signed-off-by: Elan Ruusamäe <glen@delfi.ee>
9 --- bash-completion-1.0/bash_completion~ 2009-05-12 12:05:37.000000000 +0300
10 +++ bash-completion-1.0/bash_completion 2009-05-12 12:07:58.771759678 +0300
14 COMPREPLY=( $( compgen -W '`sed -ne "y/|/ /; \
15 - s/^.*Usage.*{\(.*\)}.*$/\1/p" \
16 + s/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\2/p" \
17 $sysvdir/${prev##*/} 2>/dev/null`' -- $cur ) )