On Friday 26 March 2004 00:44, Chet Ramey wrote:
> > "Peter D." <psd@alphalink.com.au> wrote:
> > > Almost does what I want.
> >
> > If the built-in facilities aren't quite right for your situation,
> > you could try making a shell function for use with complete -F to
> > fine-tune. I don't have any experience with that myself; in
> > particular, I don't know how to produce different completions for
> > the first argument than for later arguments (or whether it's
> > possible).
>
> It's possible. That's the function of the COMP_WORDS array and the
> COMP_CWORD index variable.
>
> You should poke around and look for Ian Macdonald's slick
> `bash_complete' package. He has done much of the work for you -- in
> fact, his package provides a completion function for `nice'.
>
> Start with http://www.caliban.org/bash/index.shtml#completion.
>
> Chet
Thanks Chet.
It does what I want.
8-)
--
Sig goes here ...
Peter D.