Re: screen 4.00.01 FREEBSD 5.2.1-RELEASE cannot read .bash_profile (solved)

2004-06-17 Thread Oliver Fuchs
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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: screen 4.00.01 FREEBSD 5.2.1-RELEASE cannot read .bash_profile

2004-06-17 Thread Andy Harrison
On Thu, 17 Jun 2004 20:47:26 +0200, Oliver Fuchs
<[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I am using screen 4.00.01 on FREEBSD 5.2.1-RELEASE.
 

This is a total shot in the dark, but I wonder if this little section
of the manual might apply.


Invoked by remote shell daemon
..

   Bash attempts to determine when it is being run by the remote shell
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'
option may be used to inhibit this behavior, and the `--rcfile' option
may be used to force another file to be read, but `rshd' does not
generally invoke the shell with those options or allow them to be
specified.

-- 
Andy Harrison
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


screen 4.00.01 FREEBSD 5.2.1-RELEASE cannot read .bash_profile

2004-06-17 Thread Oliver Fuchs
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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"