On Thursday 16 December 2010, Yong Sun wrote: > 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?
I don't, and I wouldn't even try myself. It would probably interact badly with for example "set show-all-if-ambiguous on" in ~/.inputrc. _______________________________________________ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel