From owner-freebsd-ports@FreeBSD.ORG Sun Sep 21 23:53:36 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 D9982106566C; Sun, 21 Sep 2008 23:53:36 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp6.server.rpi.edu (smtp6.server.rpi.edu [128.113.2.226]) by mx1.freebsd.org (Postfix) with ESMTP id 862B08FC14; Sun, 21 Sep 2008 23:53:36 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp6.server.rpi.edu (8.13.1/8.13.1) with ESMTP id m8LMjNAZ028680; Sun, 21 Sep 2008 18:45:24 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <20080921215255.GA9622@icarus.home.lan> References: <20080921215255.GA9622@icarus.home.lan> Date: Sun, 21 Sep 2008 18:45:22 -0400 To: Jeremy Chadwick , freebsd-ports@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Bayes-Prob: 0.0001 (Score 0) X-RPI-SA-Score: 0.00 () [Hold at 20.00] 22490(-25) X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.226 Cc: Subject: Re: Fwd: 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:53:36 -0000 At 2:52 PM -0700 9/21/08, Jeremy Chadwick wrote: > >Individual did not CC the mailing list on his response. > >----- Forwarded message from manish jain ----- > > > > Thanks Jeremy. Sourcing .bash_profile from .bashrc solved the > > problem. For some reason, sourcing .bashrc from .bash_profile > > worked equally well with the version of Linux I was previously > > using. > > >> Regards >> Manish Jain >----- end message from manish jain ----- I do not understand how that makes any difference. He had all his commands in .bashrc, and sourced it from .bash_profile. If he moves all his commands to .bash_profile, and then sources that from his .bashrc, then isn't the result exactly the same? Either way, all commands should be executed no matter how bash starts up. I only mention this because my .bash_profile sources my .bashrc, and has done so on many different platforms for the past 18 years, and I've never had a problem with it. Although in my case it checks for and sources $HOME/.bashrc while he was using ~/.bashrc. Not only my .bash_profile, but every .bash_profile and .bashrc at RPI was setup this way. Tens of thousands of users, and I've never heard of anyone who had a problem with it. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu