From owner-freebsd-questions Mon Jan 12 03:31:32 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA00612 for questions-outgoing; Mon, 12 Jan 1998 03:31:32 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from mail.netcetera.dk (root@sleipner.netcetera.dk [194.192.207.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA00599 for ; Mon, 12 Jan 1998 03:31:24 -0800 (PST) (envelope-from leifn@image.dk) Received: (from uucp@localhost) by mail.netcetera.dk (8.8.8/8.8.8) with UUCP id MAA00544 for freebsd-questions@freebsd.org; Mon, 12 Jan 1998 12:28:14 +0100 Received: by swimsuit.swimsuit.roskildebc.dk (0.99.970109) id AA08387; 12 Jan 98 08:33:22 +0100 From: leifn@image.dk (Leif Neland) Date: 12 Jan 98 08:28:33 +0100 Subject: ./profile, not $HOME/.profile Message-ID: <866_9801120833@swimsuit.swimsuit.roskildebc.dk> Organization: Fidonet: UNIX-sysadm søger job To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 11 Jan 98 21:56:25 Leif Neland wrote regarding ./profile, not $HOME/.profile LN> if (login-shell == /bin/sh) then profile == $HOME/.profile LN> if (login-shell == /usr/local/bin/bash) then profile == /.profile Oops. I goofed. To give ordinary users same path as root, I copied /.profile to /etc/profile. But /.profile contained $HOME=/ ; export HOME So $HOME was also / for ordinary users (well, I'm the only user at all), and this respected bash, while sh took the real home. LN> Why? It is not so it should work according to the manpages. Well, perhaps it is :-) Leif Neland leifn@image.dk --- |Fidonet: Leif Neland 2:234/49 |Internet: leifn@image.dk