From owner-freebsd-current Sat Dec 20 11:21:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA06386 for current-outgoing; Sat, 20 Dec 1997 11:21:17 -0800 (PST) (envelope-from owner-freebsd-current) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA06353 for ; Sat, 20 Dec 1997 11:21:08 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id UAA18020 for freebsd-current@freebsd.org; Sat, 20 Dec 1997 20:20:59 +0100 (CET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.8.8/8.8.5) id UAA00892; Sat, 20 Dec 1997 20:07:28 +0100 (MET) Date: Sat, 20 Dec 1997 20:07:28 +0100 (MET) Message-Id: <199712201907.UAA00892@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 0.9.8 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E References: <19971220122048.25138@rtfm.net> From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: su and login.conf X-Original-Newsgroups: local.freebsd.current To: freebsd-current@freebsd.org Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Nathan Dorfman wrote: > Anyone else out there think that su should read login.conf when > started without the - flag? Why? Every su (to whatever user) causes $HOME to be set, so you can always differentiate between a -l and a plain su by placing stuff in ~/.cshrc vs. ~/.login. The first will be evaluated for each su, the second only for su -l. Don't blame us for the ksh-style shells not offering a similar mechanism as ~/.cshrc. Tell this to Dave Korn. $ENV sucks big rocks, and has been invented by a time when there was already enough experience with a working .cshrc. Too bad this NIHism made it into Posix. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)