[mdlug] I need a script Hero
Paul
set at pobox.com
Sat Feb 3 01:40:03 EST 2007
Michael Corral <micorral at comcast.net>, on Fri Feb 02, 2007 [11:18:23 AM] said:
> From: Michael Corral <micorral at comcast.net>
> Subject: Re: I need a script Hero
> To: MDLUG <mdlug at mdlug.org>
> Reply-To: MDLUG's Main discussion list <mdlug at mdlug.org>
> Date: Fri, 2 Feb 2007 11:18:23 -0500 (Eastern Standard Time)
> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.1
>
> Wojtak, Greg a ecrit:
> > Oh wait, I forgot... POSIX shell and Korn shell have a half-hearted
> > implementation of command completion. If you hit the Esc key twice
> > , if the shell finds more than one option, it does nothing. bash
> > on the other hand, will prompt you to display the matches it found.
>
> In ksh93, hit Esc then = to display the matches.
> ksh93 has much better command/filename completion capabilities than
> the old ksh88. For example, it's easy to create keybindings to make
> ksh93 have the same command completion actions as bash.
>
> Michael
Hi;
It should be noted that 'bash' itself is not responsible for
command completion, or even all the wonders of command line editing
and keybindings related to these things, but libreadline is. readline
is highly configurable and any shell that links to it can be made to
behave in a variety of ways, as bizzare as one can imagine.
Unfortunately, its mostly only documented in .info files.
(Oh wait, the bash man page does have quite a bit of info; search
down for ^READLINE)
But for example there are a lot of stateful settings that describe how
some functions (like command completion) behave, and there are a bunch
of functions that can have arbitrary key sequences bound to them, including
just substituting any arbitrary text for any aribrary key sequence.
Its probably one of the most flexible and complex configurable
interfaces that no-one *ever* customizes, much less even realizes exists.
Paul
set at pobox.com
More information about the mdlug
mailing list