Re: words in COMPWORDS vs. words in COMPREPLY

2010-07-24 Thread Chet Ramey
On 7/20/10 3:14 PM, Ben Pfaff wrote: I'm trying to learn how bash completion works, so that I can write completion functions for some utilities. As an experiment, I wrote the following trivial completion. It is intended to report that the completions for the current word are exactly the

words in COMPWORDS vs. words in COMPREPLY

2010-07-21 Thread Ben Pfaff
I'm trying to learn how bash completion works, so that I can write completion functions for some utilities. As an experiment, I wrote the following trivial completion. It is intended to report that the completions for the current word are exactly the contents of the current word: _test () {