From owner-freebsd-questions@FreeBSD.ORG Fri Jun 18 05:17:56 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 71FE416A4CE for ; Fri, 18 Jun 2004 05:17:56 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16B7743D39 for ; Fri, 18 Jun 2004 05:17:56 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BbBjX-0008It-00 for freebsd-questions@freebsd.org; Fri, 18 Jun 2004 07:16:11 +0200 Received: from [217.1.216.149] (helo=oliverfuchs.ath.cx) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1BbBjW-00037g-00 for freebsd-questions@freebsd.org; Fri, 18 Jun 2004 07:16:11 +0200 Received: from oliverfuchs.ath.cx (localhost [127.0.0.1]) i5I5G3Y5008571verify=FAIL) for ; Fri, 18 Jun 2004 07:16:03 +0200 Received: (from oliverfuchs1@localhost) by oliverfuchs.ath.cx (8.12.3/8.12.3/Debian-6.6) id i5I5EoSA008449 for freebsd-questions@freebsd.org; Fri, 18 Jun 2004 07:14:50 +0200 Date: Fri, 18 Jun 2004 07:14:50 +0200 From: Oliver Fuchs To: freebsd-questions@freebsd.org Message-ID: <20040618051450.GB6854@oliverfuchs.ath.cx> Mail-Followup-To: freebsd-questions@freebsd.org References: <20040617184725.GA3635@oliverfuchs.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: Re: screen 4.00.01 FREEBSD 5.2.1-RELEASE cannot read .bash_profile (solved) 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: Fri, 18 Jun 2004 05:17:56 -0000 On Thu, 17 Jun 2004, Andy Harrison wrote: Hi, first of all I have to correct my test results: Not correct: [...] .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). [...] Instead: Screen in acting correctly when shell is set to csh (then screen reads the .cshrc). Screen is not reading the .cshrc while bash is the shell > This is a total shot in the dark, but I wonder if this little section > of the manual might apply. And a hit > daemon, usually `rshd'. If Bash determines it is being run by rshd, it > reads and executes commands from `~/.bashrc', if that file exists and > is readable. It will not do this if invoked as `sh'. The `--norc' It is true that screen while bash is the shell is only looking for the .bashrc file in the home directory. I copied .bash_profile to .bashrc and then everything worked (the same effect as "shell -$SHELL" in .screenrc). So thanx for helping. Oliver -- ... don't touch the bang bang fruit