[Top][All Lists]

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

Commandline history recall not working properly

From: manish jain
Subject: Commandline history recall not working properly
Date: Thu, 18 Sep 2008 23:41:49 -0700 (PDT)

I am using FreeBSD 6.2 without X/Xorg. My shell is bash-3 and my keyboard 
layout is US-ISO with TERM set to cons25.
I am facing a problem on the console with bash. Bash simply does not remember 
my commands in the right order. Most of the commands I type in a login session 
are forgotten in the next session. Moving the Up and Down arrow keys navigates 
a highly incorrect and incomplete command history. Even doing a Ctrl-R for 
reverse search almost never finds any command I entered in any previous session.
I am attaching the contents of my .bash_profile and .bashrc below.

#.bash_profile :
if [ -f ~/.bashrc ]; then
 source ~/.bashrc

#.bashrc :
export HISTFILESIZE=1000
shopt -s cmdhist
shopt -s histappend

If anyone can help me out, I shall be really grateful.
Thanks in advance,

Manish Jain

      Unlimited freedom, unlimited storage. Get it now, on 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]