[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash and Letter E



Hello,

On Sun, Mar 26, 2000 at 11:07:15PM +0200, Samuel Tardieu wrote:
> | - I booted with init option (linux init=/bin/bash) in order to run no
> | init script and it didn't work either. I also tried D option (linux
> | D).
> 
> Assuming that your mail is serious requires a fair amount of work, but
> I'll try anyway.
> 
> bash man page reports that /etc/profile is read first. What do you have
> in it? I don't see how anything else could prevent your 'E' key from
> working.

I found out that the problem is not only with bash, but it seems to be
with programs that use libreadline library like gdb or ftp. Anyway,
I'll copy it here and my /etc/inputrc goes next. I don't have any
.inputrc.

PROFILE
--
# /etc/profile: system-wide .profile file for bash(1).

PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/java/bin:/usr/games:."
PS1="\\$ "

export PATH PS1

umask 002

if [ "$SHELL" = "/usr/bin/tcsh" -o "$SHELL" = "/bin/csh" ]; then
  eval `dircolors -c`
else
  eval `dircolors -b`
fi
export LS_OPTIONS='-FN --color=auto -h'

export PAGER=less
export LESS="-MM -i"
export LESSCHARSET="latin1"
export LESSKEY="/etc/lesskey"
export LESSOPEN='|lesspipe "%s"'

export MOZILLA_HOME="/usr/local/netscape"

export INPUTRC="/etc/inputrc"

export CLASSPATH=.:/usr/local/jgl3.1.0/lib/jgl3.1.0.jar
--

INPUTRC
--
set meta-flag on
set convert-meta off
set output-meta on
set input-meta on

"\e[1~":beginning-of-line
"\e[3~":delete-char
"\e[4~":end-of-line
"\e[5~":beginning-of-history
"\e[6~":end-of-history
"\e[7~":beginning-of-line
"\e[8~":end-of-line
"\e[\C-@":beginning-of-line
"\e[A":previous-history
"\e[B":next-history
"\e[C":forward-char
"\e[D":backward-char
"\e[E":beginning-of-line
"\e[H":beginning-of-line
"\eOH":beginning-of-line
"\eOF":end-of-line
"\EOF":end-of-line
"\e[F":end-of-line
"\e[e":end-of-line
--


[]'s
-- 
Rodrigo Castro   <rcastro@linux.ime.usp.br>
Computer Science undergraduate student - University of Sao Paulo

I do not fear computers.  I fear the lack of them.
                -- Isaac Asimov







Reply to: