From owner-freebsd-questions@FreeBSD.ORG Sat Sep 20 18:10:13 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37DE7106564A for ; Sat, 20 Sep 2008 18:10:13 +0000 (UTC) (envelope-from unxfbsdi@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.188]) by mx1.freebsd.org (Postfix) with ESMTP id E478D8FC17 for ; Sat, 20 Sep 2008 18:10:12 +0000 (UTC) (envelope-from unxfbsdi@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so270539rne.12 for ; Sat, 20 Sep 2008 11:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type; bh=VMpZGX2DsYBovErnFdKOyZ8pmrALAnOjDQ+Rd6tEcEw=; b=I94HS3iAQdBFr3d8JkS8+JiZ6H3RNnkeldK470fpfZGHByepmQ9cp7Z6Co4WN/zHkl ZMWO8+QDwn47qOs66ink+4yHgz7B1iWTVHvC4aLMzqrKyOzsxMn0fg0qji841BEki3K0 ZygTKZJhocGgWCHpDCuhu36F282YBsdvG7zyE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=GkKWpYZhAunRMKuBEbDgnJUIKZ0mgRxuLz4YRm0dXA84kMyRFWFjUVjj8OJ1f/e2Y3 SB26DzCgP9LH1N77iB0IVQg3rYsYAhun2iv6PSGIULyOycCySB5gTKRewQAyMSxMziiv 77/cCDJ5ugAgBz6jKQpw6x/W/hofLLd0qj1NY= Received: by 10.100.166.10 with SMTP id o10mr1478412ane.0.1221932924071; Sat, 20 Sep 2008 10:48:44 -0700 (PDT) Received: by 10.101.71.10 with HTTP; Sat, 20 Sep 2008 10:48:34 -0700 (PDT) Message-ID: <71a1c60e0809201048s168fe713j3ec661eeb93f4492@mail.gmail.com> Date: Sat, 20 Sep 2008 23:18:34 +0530 From: "manish jain" To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports@freebsd.org Subject: Incorrect commandline history with bash X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2008 18:10:13 -0000 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