From owner-freebsd-questions@FreeBSD.ORG Thu Mar 5 13:24:02 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 4B5071065670 for ; Thu, 5 Mar 2009 13:24:02 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by mx1.freebsd.org (Postfix) with ESMTP id CC77B8FC15 for ; Thu, 5 Mar 2009 13:24:01 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from marge.bs.l (e180051013.adsl.alicedsl.de [85.180.51.13]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MKv1o-1LfDYH19Tr-000DBO; Thu, 05 Mar 2009 14:23:53 +0100 Received: from bsch by marge.bs.l with local (Exim 4.69) (envelope-from ) id 1LfDYG-0002J2-QA; Thu, 05 Mar 2009 14:23:52 +0100 Date: Thu, 5 Mar 2009 14:23:52 +0100 From: Bertram Scharpf To: Frank Shute , freebsd-questions@freebsd.org Message-ID: <20090305132352.GA8574@marge.bs.l> Mail-Followup-To: Frank Shute , freebsd-questions@freebsd.org References: <20090304150803.GA30617@marge.bs.l> <20090305041505.GA35138@melon.esperance-linux.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20090305041505.GA35138@melon.esperance-linux.co.uk> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: Bertram Scharpf X-Provags-ID: V01U2FsdGVkX18k6cVXEueOv8uQ0Ubr6csY0/vVfUB+Zd3ic3y KYFIpjNP6UeXPbUB1HZeG106mnwHsDnOfTBiGHYOBDYvaGDDfu lAxq0ju8k7zpNKcr2MBmgjIRqKedGe1 Cc: 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: Thu, 05 Mar 2009 13:24:02 -0000 Hi Frank, Am Donnerstag, 05. M=E4r 2009, 04:15:05 +0000 schrieb Frank Shute: > On Wed, Mar 04, 2009 at 04:08:03PM +0100, Bertram Scharpf wrote: > > from "man sh": > >=20 > > Invocation > > [...] the shell inspects > > argument 0, and if it begins with a dash (`-'), the shell is also = consid- > > ered a login shell. [...] A login shell first reads commands from= the > > files /etc/profile and then .profile in a user's home directory, i= f they > > exist. [...] > >=20 > > I use Slim (X login manager) which calls > >=20 > > exec /bin/sh - ~/.xinitrc >=20 > I've never before seen the syntax you've used and I think it comes > from a misunderstanding of the manpage for sh and/or it's a bashism or > a typo. It's the original FreeBSD port. > E.g: >=20 > /bin/sh -c somecommand (login shell - arg 0 starts with a dash) Sorry, this doesn't call /etc/profile either. $ uname -v FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffa= lo.edu:/usr/obj/usr/src/sys/GENERIC Bertram --=20 Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de