From owner-freebsd-questions@FreeBSD.ORG Thu Jun 17 18:48:50 2004 Return-Path: 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 E8D6216A4D0 for ; Thu, 17 Jun 2004 18:48:50 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D90D43D2D for ; Thu, 17 Jun 2004 18:48:50 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1Bb1vk-0005EA-00 for freebsd-questions@freebsd.org; Thu, 17 Jun 2004 20:48:08 +0200 Received: from [217.1.218.195] (helo=oliverfuchs.ath.cx) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1Bb1vj-0004Pp-00 for freebsd-questions@freebsd.org; Thu, 17 Jun 2004 20:48:07 +0200 Received: from oliverfuchs.ath.cx (localhost [127.0.0.1]) i5HIm2t2003941verify=FAIL) for ; Thu, 17 Jun 2004 20:48:02 +0200 Received: (from oliverfuchs1@localhost) by oliverfuchs.ath.cx (8.12.3/8.12.3/Debian-6.6) id i5HIlQoH003892 for freebsd-questions@freebsd.org; Thu, 17 Jun 2004 20:47:26 +0200 Date: Thu, 17 Jun 2004 20:47:26 +0200 From: Oliver Fuchs To: freebsd-questions@freebsd.org Message-ID: <20040617184725.GA3635@oliverfuchs.ath.cx> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: screen 4.00.01 FREEBSD 5.2.1-RELEASE cannot read .bash_profile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2004 18:48:51 -0000 Hi, I am using screen 4.00.01 on FREEBSD 5.2.1-RELEASE. Running the csh-shell everything works correctly inside screen. But I have a user who is running the bash-shell. Now this is happening: Screen cannot read the .bash_profile unless I set the option in .screenrc: shell -$SHELL. I recognized this behavior when trying to run vim in screen. In .bash_profile vim is set as alias of vi: alias vi="vim". But screen is not able to read this alias as long as it is set in .bash_profile. If the alias is set in .cshrc: alias vi vim screen is running vim when typing vi (although the shell is still bash). It seems to me that screen is only reading or reacting to the csh-shell-environment and not to the actual given shell. I tried to set in .screenrc: shell $SHELL - but no reaction. The only thing that helped is to set in .screenrc shell -$SHELL then the .bash_profile and the bash-environment is accepted by screen. How can I change this behavior? Thanx in advance Oliver -- ... don't touch the bang bang fruit