[Bash-completion-devel] completion for ipv6calc

Guillaume Rousse Guillaume.Rousse at inria.fr
Sun Jan 3 11:43:00 UTC 2010


Le 03/01/2010 10:14, gibboris at gmail.com a écrit :
>>     COMPREPLY=()
>>     cur=`_get_cword`
>>     prev=${COMP_WORDS[COMP_CWORD-1]}
> there is a new _get_pword.

cur = _get_cword
prev = _get_pword

Shouldn't we try to have variable and function names more consistent ?
Aka rename _get_cword and _get_pword to _get_cur and _get_prev, or
rename cur and prev to cword and pword ?
-- 
BOFH excuse #266:

All of the packets are empty.



More information about the Bash-completion-devel mailing list