From owner-freebsd-ports@FreeBSD.ORG Sun Sep 21 23:31:23 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30AC2106572F for ; Sun, 21 Sep 2008 23:31:19 +0000 (UTC) (envelope-from jrhett@netconsonance.com) Received: from mail.netconsonance.com (mail.netconsonance.com [198.207.204.4]) by mx1.freebsd.org (Postfix) with ESMTP id 6FF808FC17 for ; Sun, 21 Sep 2008 23:31:19 +0000 (UTC) (envelope-from jrhett@netconsonance.com) Received: from [172.16.12.8] (covad-jrhett.meer.net [209.157.140.144]) (authenticated bits=0) by mail.netconsonance.com (8.14.1/8.14.1) with ESMTP id m8LMsCOc063070; Sun, 21 Sep 2008 15:54:12 -0700 (PDT) (envelope-from jrhett@netconsonance.com) X-Virus-Scanned: amavisd-new at netconsonance.com X-Spam-Flag: NO X-Spam-Score: -2.407 X-Spam-Level: X-Spam-Status: No, score=-2.407 tagged_above=-999 required=3.5 tests=[ALL_TRUSTED=-1.44, AWL=-0.967] Message-Id: <34CFC7BB-E7D2-4B34-9D85-70F4C8E718E2@netconsonance.com> From: Jo Rhett To: Jeremy Chadwick In-Reply-To: <20080921215255.GA9622@icarus.home.lan> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Date: Sun, 21 Sep 2008 15:54:12 -0700 References: <20080921215255.GA9622@icarus.home.lan> X-Mailer: Apple Mail (2.928.1) Cc: freebsd-ports@freebsd.org Subject: Re: Incorrect commandline history with bash X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2008 23:31:23 -0000 On Sep 21, 2008, at 2:52 PM, Jeremy Chadwick wrote: >> The following are the contents of my .bash_profile and .bashrc: >> >> #.bash_profile : >> [ -f ~/.bashrc ] && source ~/.bashrc >> #end-of-file > > You have this backwards. ~/.bashrc should contain something like > this: > > if [ -f "${HOME}/.bash_profile" ] > then > source "${HOME}/.bash_profile" > fi Jeremy, I'm not sure what version of FreeBSD you are using but I'd like to point out that in 6.2 and 6.3-REL his version is correct and yours will not work. .bashrc is not sourced on login on any of my hosts. I have ". ~/.bashrc" in my .bash_profile. And I just commented it out, and .bash_profile environment was set up, and the stuff in .bashrc was not. Is this perhaps an X versus SSH login sort of thing? I don't know. We have no X environment, this is entirely logging in via SSH. -- Jo Rhett Net Consonance : consonant endings by net philanthropy, open source and other randomness