From owner-freebsd-questions Sat Mar 8 9:12:36 2003 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 9175137B401 for ; Sat, 8 Mar 2003 09:12:34 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id D251943FAF for ; Sat, 8 Mar 2003 09:12:32 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) by smtp.infracaninophile.co.uk (8.12.8/8.12.8) with ESMTP id h28HCOJ6075829 for ; Sat, 8 Mar 2003 17:12:24 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.8/8.12.8/Submit) id h28HCOxl075828 for freebsd-questions@FreeBSD.ORG; Sat, 8 Mar 2003 17:12:24 GMT Date: Sat, 8 Mar 2003 17:12:24 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: bash not automatically interactive Message-ID: <20030308171224.GA75767@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <3e6a1cb4$0$49109$e4fe514c@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e6a1cb4$0$49109$e4fe514c@news.xs4all.nl> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-32.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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 On Sat, Mar 08, 2003 at 05:40:20PM +0100, Bas Essers wrote: > i just installed bash2 from the ports collection and used "chsh" to make it > my shell. and now when i log in i get bash but it doesn't run in interactive > mode, only when i start another one with "bash -i", and that's also the only > way to get bash to read ~/.bashrc. does anyone know what the problem is? > should i create a different startup script or something? i don't have any > standard .bashrc, /etc/login or .bash_login files. thanks That's normal. When bash(1) is started as a login shell, it reads the first one out of ~/.bash_profile, ~/.bash_login or ~/.profile it can find. Otherwise, for non-login shells it reads ~/.bashrc If you want ~/.bashrc to be read for all shells, you need to add something like the following to ~/.bash_login: if [ -f ${HOME}/.bashrc ] ; then . ${HOME}/.bashrc fi Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message