Date: Fri, 18 Jun 2004 07:14:50 +0200 From: Oliver Fuchs <oliverfuchs@onlinehome.de> To: freebsd-questions@freebsd.org Subject: Re: screen 4.00.01 FREEBSD 5.2.1-RELEASE cannot read .bash_profile (solved) Message-ID: <20040618051450.GB6854@oliverfuchs.ath.cx> In-Reply-To: <a22ff29404061720203c1eaa38@mail.gmail.com> References: <20040617184725.GA3635@oliverfuchs.ath.cx> <a22ff29404061720203c1eaa38@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040618051450.GB6854>