[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash completion and spaces



David Wright wrote:

[dd]

> 
> > > I also don't understand what you mean by "dynamic", particularly as
> > > you wrote "A static (-W) completion" above. 
> > 
> > I actually meant that a simple example of static completion with spaces
> > (if someone cares to provide it) would help me understand the idea, and
> > I could use it in a dynamic completion later if I need to.
> > 
> > > You could always generate
> > > lists of aliases dynamically, too.
> > 
> > Well, I can make bash regenerate a completion list every time I
> > enter "app3<TAB>", probably it can be done with aliases as well?
> 
> I think aliases can only work at the level of the entire command line,
> ie the aliases must have been defined by the time you start typing the
> line (which is why you can't define and use an alias in the same line).
> 
> OTOH bash completion completes at a character-to-character level AIUI,
> ie <TAB> always recalculates a fresh list (though you have to rubout
> one character and press <TAB> again to actually complete with it).

Yes, that's why I wanted to do it with completion, but now I don't feel
like investing too much time and effort into such a complicated thing.
Completion is supposed to save your time and effort, not consume it.

-- 
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
2:5005/49@fidonet

Attachment: signature.asc
Description: PGP signature


Reply to: