[Bash-completion-devel] How to implement a stateful behavior in bash-completion?

Yong Sun findsun at gmail.com
Thu Dec 16 06:09:11 UTC 2010


Hi, guys,

I have another question, I'd like to implement a stateful behavior in
bash-completion scripts, e.g., the behavior would be different for 1st
tab and 2nd tab key pressed.

The only thing I could imagine is to use global variables in functions.

Do you know how could I implement this?

-- 
Yong Sun <mail at yongsun.me>



More information about the Bash-completion-devel mailing list