[Bash-completion-devel] [bash-completion-Bugs][312030] [PATCH] Implementation of _get_pword() as a replacement for ${COMP_WORDS[COMP_CWORD-1]}

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Sat Oct 31 09:01:10 UTC 2009


Bugs item #312030, was changed at 2009-10-26 15:00 by Freddy Vulto
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312030&group_id=100114

>Status: Closed
Priority: 3
Submitted By: Sung Pae (guns-guest)
Assigned to: Nobody (None)
Summary: [PATCH] Implementation of _get_pword() as a replacement for ${COMP_WORDS[COMP_CWORD-1]} 
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
A workaround for surprising behaviour in bash4's handling of COMP_WORDS,
wrt getting the previous word in a completion.

So far it works as a drop in replacement for ${COMP_WORDS[COMP_CWORD-1]}.



More information about the Bash-completion-devel mailing list