Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 2008 23:18:34 +0530
From:      "manish jain" <unxfbsdi@gmail.com>
To:        questions@freebsd.org
Cc:        ports@freebsd.org
Subject:   Incorrect commandline history with bash
Message-ID:  <71a1c60e0809201048s168fe713j3ec661eeb93f4492@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I just migrated from Linux and I am now using FreeBSD 6.3. My keyboard
layout is US-ISO and my TERM is con25. I am using bash#3 as my login shell.
(I installed the bash package from the distribution media, not from
/usr/ports).

The problem is that bash does not remember my commands correctly. Almost all
commands I enter in a login session are forgotten in the next session. Using
the Up and Down arrow keys navigates a mangled and incomlete command
history. Even using Ctrl-r for a reverse find almost never fetches a command
I had actually typed in previously.

The following are the contents of my .bash_profile and .bashrc:


#.bash_profile :
[ -f ~/.bashrc ] && source ~/.bashrc
#end-of-file


#.bashrc :
export HISTFILESIZE=200
shopt -s cmdhist
shopt -s histappend
#end-of-file


If anyone can help me to get bash remembering my command history correctly,
I will be grateful.
Thanks
unxfbsdi@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?71a1c60e0809201048s168fe713j3ec661eeb93f4492>