From owner-freebsd-hackers Mon Jan 6 18:02:28 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA21057 for hackers-outgoing; Mon, 6 Jan 1997 18:02:28 -0800 (PST) Received: from profane.iq.org (profane.iq.org [203.4.184.217]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id SAA21051 for ; Mon, 6 Jan 1997 18:02:14 -0800 (PST) Received: (from proff@localhost) by profane.iq.org (8.8.4/8.8.2) id NAA01908 for hackers@freebsd.org; Tue, 7 Jan 1997 13:01:01 +1100 (EST) From: Julian Assange Message-Id: <199701070201.NAA01908@profane.iq.org> Subject: envfs and /usr/share/skel/* stupidity To: hackers@freebsd.org Date: Tue, 7 Jan 1997 13:01:01 +1100 (EST) X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk dot.cshrc, dot.login and dot.profile are brain-dead. they set PATH, TERM VI, MANPATH and a number of other enviromental variables, as well as umask and various mail stuff. NONE of these should be set by default. it totally destroys the concept of central management, and the TERM case breaks remote logins. dot.* should not do anything, and should merely be provided for as a (commented out!) template. Everything here should be moved into /etc/profile /etc/csh.cshrc etc. Personally, use a psuedo "envfs" /etc/env which contains system defaults for PATH, MANPATH, INFOPATH, EDITOR, PAGER etc. /etc/profile, /etc/rc (etc) then does: if cd /etc/env then for n in * do read v<$n eval $n=$v done cd - fi and in my dot.profile if cd $HOME/env then for n in * do read v<$n eval $n=$v done cd - fi which gives the user their own "envfs". Note that because eval is used, it is possible to have "`cat /etc/nntpserver`" etc, as the entry for NNTPSERVER -Julian