From owner-freebsd-questions Fri Aug 9 8:11: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 974DB37B400 for ; Fri, 9 Aug 2002 08:11:00 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEC7F43E3B for ; Fri, 9 Aug 2002 08:10:59 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g79FAxdI083235; Fri, 9 Aug 2002 10:10:59 -0500 (CDT) (envelope-from dan) Date: Fri, 9 Aug 2002 10:10:59 -0500 From: Dan Nelson To: John Bleichert Cc: questions at FreeBSD Subject: Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout? Message-ID: <20020809151059.GA72261@dan.emsphone.com> References: <20020809144240.GA3773@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Aug 09), John Bleichert said: > I think /bin/sh uses .login and .profile on the way 'in' and .logout on > the way out. I put "clear" in .logout of my root account and it works > fine. /bin/sh runs the following files on startup: /etc/profile, ~/.profile (or /etc/suid_profile if root/setuid), and whatever filename $ENV is set to, if any. It does not run ~/.login (which would be in csh format anyway), and it does not run anything on logout. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message