From owner-freebsd-questions@FreeBSD.ORG Fri Mar 6 02:22:07 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 02C59106566B for ; Fri, 6 Mar 2009 02:22:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id B6DF68FC19 for ; Fri, 6 Mar 2009 02:22:06 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-109-64.dynamic.qsc.de [92.196.109.64]) by mx02.qsc.de (Postfix) with ESMTP id 8906716C0239; Fri, 6 Mar 2009 03:22:05 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n262LxNB002475; Fri, 6 Mar 2009 03:21:59 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 6 Mar 2009 03:21:59 +0100 From: Polytropon To: Peter Steele Message-Id: <20090306032159.12ea365a.freebsd@edvax.de> In-Reply-To: <31137799.01236305475066.JavaMail.HALO$@halo> References: <20090306004003.99091e42.freebsd@edvax.de> <31137799.01236305475066.JavaMail.HALO$@halo> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: /bin/sh does not read profile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2009 02:22:07 -0000 On Thu, 5 Mar 2009 18:11:18 -0800 (PST), Peter Steele wrote: > 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. I read from the manpage bash-3.2.25 according to the FILES section: /etc/profile The systemwide initialization file, executed for login shells ~/.bash_profile The personal initialization file, executed for login shells ~/.bashrc The individual per-interactive-shell startup file When the shell is the login shell (prefixed with - in the process list), it seems that it needs to read ~/.bash_profile (and not the ~/.bashrc file). So you could put . ~/.bashrc into ~/.bash_profile to get a workaround. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...