Re: [ILUG] BASH confusion

From: Gavin McCullagh (gavin at domain fiachra.ucd.ie)
Date: Tue 23 Oct 2001 - 14:48:48 IST


On Tue, 23 Oct 2001, John Gaughan wrote:

> Not quite all, since your supplying a command to run (i.e., it's not an
> interactive shell) the GNU readline library isn't used (readline
> provides the command-line interface in bash, it's also used by other
> programs such as ncftp and gdb). The readline startup files appear to
> be read after bash's startup files, so they could be overriding the "set
> -o emacs" in your bash startup files.
>
> Readline is controlled by the files /etc/inputrc and ~/.inputrc. The
> default key bindings are controlled by the "editing-mode" variable
> (there's also a "keymap" variable, but as far as I can tell this
> doesn't do anything). To set the key bindings to vi you'd add the line
> "set editing-mode vi" to your .inputrc (or "set editing-mode emacs" for
> emacs key bindings). You can see what your readline variables are set
> to with "bind -V".

Brilliant John, it was indeed the .inputrc. Both keymap and editing-mode
were set to vi so they're both changed back to emacs and all is well with
my shell again,

Thanks

Gavin



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:52 GMT