From owner-freebsd-ports@FreeBSD.ORG Mon Sep 22 01:22:13 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 C30E51065673; Mon, 22 Sep 2008 01:22:13 +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 876BA8FC12; Mon, 22 Sep 2008 01:22:13 +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 m8M1MAlj022482; Sun, 21 Sep 2008 21:22:12 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <20080922002819.GA12610@icarus.home.lan> References: <20080921215255.GA9622@icarus.home.lan> <20080922002819.GA12610@icarus.home.lan> Date: Sun, 21 Sep 2008 21:22:09 -0400 To: Jeremy Chadwick 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: 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: Mon, 22 Sep 2008 01:22:13 -0000 At 5:28 PM -0700 9/21/08, Jeremy Chadwick wrote: >On Sun, Sep 21, 2008 at 06:45:22PM -0400, Garance A Drosihn wrote: > > >> 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. > >The INVOCATION section of the bash man page goes over the subtle >differences. Okay, I've re-read it, and I'm still missing what the difference would be. I'm not arguing that you're wrong, I'm just saying that I don't understand it. Apparently your advice did help the person with the original problem, but I'm still sitting here with literally tens of thousands of RPI users who did it "the wrong way", and not one of them has ever reported a problem due to that. Now, most of those people have never used FreeBSD, but I've used this same setup on freebsd for at least 13 years, and have never seen a problem. Given: a) .bashrc sources .bash_profile or b) .bash_profile sources .bashrc In both cases, both .bashrc and .bash_profile will exist. So, any decision that bash makes based on the *existence* of either file should be the same. In both cases, both files exist. If bash picks one file to source, that file will either contain the commands to execute, or it will source the other file which contains those very same commands. I don't see how that could possibly make any difference. Obviously I'm then at a loss to explain how the problem went away for the original user. All I can guess is that maybe one of the files was permitted wrong, and he happened to fix that while moving the files around. I admit that doesn't seem likely, but I just cannot see how your advice managed to fix his problem. Sign me: Confused in Troy... -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu