From owner-freebsd-questions@FreeBSD.ORG Fri Mar 6 02:11:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFC3E1065673 for ; Fri, 6 Mar 2009 02:11:37 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from exprod7og102.obsmtp.com (exprod7og102.obsmtp.com [64.18.2.157]) by mx1.freebsd.org (Postfix) with SMTP id 6B30C8FC24 for ; Fri, 6 Mar 2009 02:11:37 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from source ([209.85.200.171]) by exprod7ob102.postini.com ([64.18.6.12]) with SMTP ID DSNKSbCGWL81xxXFJ17RnEn0gYFsRtlO4LdX@postini.com; Thu, 05 Mar 2009 18:11:37 PST Received: by wf-out-1314.google.com with SMTP id 28so246490wfa.11 for ; Thu, 05 Mar 2009 18:11:36 -0800 (PST) Received: by 10.142.164.21 with SMTP id m21mr445593wfe.306.1236305496645; Thu, 05 Mar 2009 18:11:36 -0800 (PST) Received: from localhost ([76.231.178.131]) by mx.google.com with ESMTPS id 24sm1000161wff.2.2009.03.05.18.11.35 (version=SSLv3 cipher=RC4-MD5); Thu, 05 Mar 2009 18:11:36 -0800 (PST) Date: Thu, 5 Mar 2009 18:11:18 -0800 (PST) From: Peter Steele To: freebsd-questions@freebsd.org Message-ID: <31137799.01236305475066.JavaMail.HALO$@halo> In-Reply-To: <20090306004003.99091e42.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: /bin/sh does not read profile 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: Fri, 06 Mar 2009 02:11:38 -0000 >I first wondered why none of my commands in "/etc/profile" and >"~/.profile" got executed. Finally, I modified >"/usr/src/bin/sh/main.c" to trace what files are read, recompiled >the "sh" command and: the only file that is executed is "~/.shrc". > >I just cannot believe that FreeBSD has such a severe bug. What is >going wrong here? I have a similar problem, but with bash. I have both my personal account and root set to use bash instead of sh and when I login the .bashrc file is not read. My system does not have an X environment, it's plain old BSD. How can I get it to load .bashrc when I login? I'm using a 7.0 binary release.