Date: Fri, 6 Mar 2009 02:41:44 +0100 From: J65nko <j65nko@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: /bin/sh does not read profile Message-ID: <19861fba0903051741t58c7c622q12bd4619eda7f4bb@mail.gmail.com> In-Reply-To: <20090304150803.GA30617@marge.bs.l> References: <20090304150803.GA30617@marge.bs.l>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 4, 2009 at 4:08 PM, Bertram Scharpf <lists@bertram-scharpf.de> wrote: > Hi, > > from "man sh": > > Invocation > [...] When first starting, the shell inspects > argument 0, and if it begins with a dash (`-'), the shell is also consid- > ered a login shell. This is normally done automatically by the system > when the user first logs in. A login shell first reads commands from the > files /etc/profile and then .profile in a user's home directory, if they > exist. [...] > > I use Slim (X login manager) which calls > > exec /bin/sh - ~/.xinitrc > > 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? > Put the following in a file called ".Xresources" : XTerm*loginShell: true =Adriaan=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19861fba0903051741t58c7c622q12bd4619eda7f4bb>