Rajesh Fowkar forced the electrons to say:
> The arrow keys ( up & down ) to go through the bash history are not working.
> However if from a users account if we do su than the arrow keys start
> working. If we use su - than again arrow keys are not working.

Hmm... maybe /etc/inputrc is not used for root?

Which distribution? Which version? Does your /etc/profile define INPUTRC
for root also? Check out the output of bind -P (in bash) and look for
previous-history and next-history, and see if they are mapped to \eOA
and \eOB (the up and down arrow keys).

Otherwise put these lines in ~root/.inputrc. This should work.

"\eOA": previous-history
"\eOB": next-history
"\e[A": previous-history
"\e[B": next-history

Binand

-- 
The prompt for all occasions:
export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> "
--------------- Binand Raj S. ([EMAIL PROTECTED])


----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to