cc: [email protected] Subject: Re: [ast-users] importing bash completion into ksh? --------
> I am suffering an acute case of bash envy because increasingly > my unix tools are coming with custom programmable completions > for bash. I would really like to have this capability for ksh. > It seems to me that it would not be impossible to write a bash-compatible > 'complete' command that would allow ksh to use bash completions. > Has anyone contemplated such a thing or produced anything that might > be usable as a prototype? (Another option would be to use ksh's > ability to import C modules to import bash's command completion > wholesale.) > > Any thoughts? (If completion is for wimps, I'm becoming a wimp...) > > For ksh93u, I was thinking of adding a completion trap that would allow you to intercept completions and provide customized completions. When the trap is called the variable sh.edtext would contain the current edit line, sh.edcol would contain the character number on the line that the cursor is located, and sh.edchar would contain the key that was pressed to do the competion. If the trap returns success, it must supply a list of completions, otherwise the default completions mechanism will be used. I am interested in feedback on this idea before I implement it. David Korn [email protected] _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
