[opensuse-xfce] starting terminal does not run shell startup file
Hi, Just moved to 12.3 and noticed that when I start a terminal my .cshrc file is not being sourced :( I use gnome-terminal, but the same problem occurs when using xfce4-terminal. Any ideas on how to fix this? Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-xfce+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xfce+owner@opensuse.org
Hi, * Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:02]:
Just moved to 12.3 and noticed that when I start a terminal my .cshrc file is not being sourced :(
I use gnome-terminal, but the same problem occurs when using xfce4-terminal.
Any ideas on how to fix this?
I stopped using tcsh around seven years ago but I remember that .cshrc is always read when starting a shell, are you sure there is no .tcshrc which takes precedence over .cshrc? Or is the problem rather that .login is not being sourced? In that case go to Preferences and enable "Run command as login shell" so you get a login shell. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-xfce+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xfce+owner@opensuse.org
On 03/13/2013 08:23 AM, Guido Berhoerster wrote:
Hi,
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:02]:
Just moved to 12.3 and noticed that when I start a terminal my .cshrc file is not being sourced :(
I use gnome-terminal, but the same problem occurs when using xfce4-terminal.
Any ideas on how to fix this?
I stopped using tcsh around seven years ago but I remember that .cshrc is always read when starting a shell, are you sure there is no .tcshrc which takes precedence over .cshrc?
Yes, I have no .tcshrc in my home directory.
Or is the problem rather that .login is not being sourced?
I do not know, how would I find out?
In that case go to Preferences and enable "Run command as login shell" so you get a login shell.
Well I changed the prefrences of the profile and toggled "Run command as a login shell" on (although I didn't need this previously ;) ). But there was no change in behavior :( , I tested both gnome-terminal and xfce-terminal. When I start a new terminal .cshrc is still not sourced :( How do I figure out what's going on here? Thanks, Robert
-- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-xfce+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xfce+owner@opensuse.org
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:45]:
On 03/13/2013 08:23 AM, Guido Berhoerster wrote:
Hi,
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:02]:
Just moved to 12.3 and noticed that when I start a terminal my .cshrc file is not being sourced :(
I use gnome-terminal, but the same problem occurs when using xfce4-terminal.
Any ideas on how to fix this?
I stopped using tcsh around seven years ago but I remember that .cshrc is always read when starting a shell, are you sure there is no .tcshrc which takes precedence over .cshrc?
Yes, I have no .tcshrc in my home directory.
Or is the problem rather that .login is not being sourced?
I do not know, how would I find out?
Well how do you know that .cshrc is not sourced now? I would just put "echo .cshrc" on top of the .cshrc and echo .login on top of .login and see what happens when opening xterm, xfce4-terminal and logging in from a console. On my system it works and I get ".cshrc" as expected, when enabling a login shell in xfce4-terminal I also see ".login".
In that case go to Preferences and enable "Run command as login shell" so you get a login shell.
Well I changed the prefrences of the profile and toggled "Run command as a login shell" on (although I didn't need this previously ;) ). But there was no change in behavior :( , I tested both gnome-terminal and xfce-terminal. When I start a new terminal .cshrc is still not sourced :(
How do I figure out what's going on here?
See above. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-xfce+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xfce+owner@opensuse.org
On 03/13/2013 09:02 AM, Guido Berhoerster wrote:
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:45]:
On 03/13/2013 08:23 AM, Guido Berhoerster wrote:
Hi,
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:02]:
Just moved to 12.3 and noticed that when I start a terminal my .cshrc file is not being sourced :(
I use gnome-terminal, but the same problem occurs when using xfce4-terminal.
Any ideas on how to fix this?
I stopped using tcsh around seven years ago but I remember that .cshrc is always read when starting a shell, are you sure there is no .tcshrc which takes precedence over .cshrc?
Yes, I have no .tcshrc in my home directory.
Or is the problem rather that .login is not being sourced?
I do not know, how would I find out?
Well how do you know that .cshrc is not sourced now?
none of my alias' are available, my AWS environment variables are not set etc. there is no syntax error in my .cshrc file, running "source .cshrc" in the shell works just fine.
I would just put "echo .cshrc" on top of the .cshrc and echo .login on top of .login and see what happens when opening xterm, xfce4-terminal and logging in from a console. On my system it works and I get ".cshrc" as expected, when enabling a login shell in xfce4-terminal I also see ".login".
In that case go to Preferences and enable "Run command as login shell" so you get a login shell.
Well I changed the prefrences of the profile and toggled "Run command as a login shell" on (although I didn't need this previously ;) ). But there was no change in behavior :( , I tested both gnome-terminal and xfce-terminal. When I start a new terminal .cshrc is still not sourced :(
How do I figure out what's going on here?
See above.
I think the problem is outside my local configuration. I guess have to work my way through all the steps in /etc that are supposed to happen :( xterm behaves the same, i.e. it is broken as well. I do not have a /etc/csh.cshrc.local or $HOME/.csh.expert file. Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-xfce+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xfce+owner@opensuse.org
On 03/13/2013 09:40 AM, Robert Schweikert wrote:
On 03/13/2013 09:02 AM, Guido Berhoerster wrote:
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:45]:
On 03/13/2013 08:23 AM, Guido Berhoerster wrote:
Hi,
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:02]:
Just moved to 12.3 and noticed that when I start a terminal my .cshrc file is not being sourced :(
I use gnome-terminal, but the same problem occurs when using xfce4-terminal.
Any ideas on how to fix this?
I stopped using tcsh around seven years ago but I remember that .cshrc is always read when starting a shell, are you sure there is no .tcshrc which takes precedence over .cshrc?
Yes, I have no .tcshrc in my home directory.
Or is the problem rather that .login is not being sourced?
I do not know, how would I find out?
Well how do you know that .cshrc is not sourced now?
none of my alias' are available, my AWS environment variables are not set etc.
there is no syntax error in my .cshrc file, running "source .cshrc" in the shell works just fine.
I would just put "echo .cshrc" on top of the .cshrc and echo .login on top of .login and see what happens when opening xterm, xfce4-terminal and logging in from a console. On my system it works and I get ".cshrc" as expected, when enabling a login shell in xfce4-terminal I also see ".login".
In that case go to Preferences and enable "Run command as login shell" so you get a login shell.
Well I changed the prefrences of the profile and toggled "Run command as a login shell" on (although I didn't need this previously ;) ). But there was no change in behavior :( , I tested both gnome-terminal and xfce-terminal. When I start a new terminal .cshrc is still not sourced :(
How do I figure out what's going on here?
See above.
I think the problem is outside my local configuration. I guess have to work my way through all the steps in /etc that are supposed to happen :(
xterm behaves the same, i.e. it is broken as well.
I do not have a /etc/csh.cshrc.local or $HOME/.csh.expert file.
To follow up on this I just noticed something curious. On a from scratch installed system everything works as expected, i.e. when I start a terminal my .cshrc file is sourced :) . "Run as login shell" is NOT toggled on. The system, experiencing the issue is one I upgraded from openSUSE 12.2 to 12.3 Thoughts? Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-xfce+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xfce+owner@opensuse.org
* Robert Schweikert <rjschwei@suse.com> [2013-03-14 22:26]:
On 03/13/2013 09:40 AM, Robert Schweikert wrote:
On 03/13/2013 09:02 AM, Guido Berhoerster wrote:
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:45]:
On 03/13/2013 08:23 AM, Guido Berhoerster wrote:
Hi,
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:02]:
Just moved to 12.3 and noticed that when I start a terminal my .cshrc file is not being sourced :(
I use gnome-terminal, but the same problem occurs when using xfce4-terminal.
Any ideas on how to fix this?
I stopped using tcsh around seven years ago but I remember that .cshrc is always read when starting a shell, are you sure there is no .tcshrc which takes precedence over .cshrc?
Yes, I have no .tcshrc in my home directory.
Or is the problem rather that .login is not being sourced?
I do not know, how would I find out?
Well how do you know that .cshrc is not sourced now?
none of my alias' are available, my AWS environment variables are not set etc.
there is no syntax error in my .cshrc file, running "source .cshrc" in the shell works just fine.
I would just put "echo .cshrc" on top of the .cshrc and echo .login on top of .login and see what happens when opening xterm, xfce4-terminal and logging in from a console. On my system it works and I get ".cshrc" as expected, when enabling a login shell in xfce4-terminal I also see ".login".
In that case go to Preferences and enable "Run command as login shell" so you get a login shell.
Well I changed the prefrences of the profile and toggled "Run command as a login shell" on (although I didn't need this previously ;) ). But there was no change in behavior :( , I tested both gnome-terminal and xfce-terminal. When I start a new terminal .cshrc is still not sourced :(
How do I figure out what's going on here?
See above.
I think the problem is outside my local configuration. I guess have to work my way through all the steps in /etc that are supposed to happen :(
xterm behaves the same, i.e. it is broken as well.
I do not have a /etc/csh.cshrc.local or $HOME/.csh.expert file.
To follow up on this I just noticed something curious. On a from scratch installed system everything works as expected, i.e. when I start a terminal my .cshrc file is sourced :) . "Run as login shell" is NOT toggled on.
The system, experiencing the issue is one I upgraded from openSUSE 12.2 to 12.3
Thoughts?
That's expected behavior, "Run as login shell" determines whether ~/.login is sourced, not ~/.cshrc (just as if you logged in on a console or via ssh). -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-xfce+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xfce+owner@opensuse.org
On 03/14/2013 05:35 PM, Guido Berhoerster wrote:
* Robert Schweikert <rjschwei@suse.com> [2013-03-14 22:26]:
On 03/13/2013 09:40 AM, Robert Schweikert wrote:
On 03/13/2013 09:02 AM, Guido Berhoerster wrote:
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:45]:
On 03/13/2013 08:23 AM, Guido Berhoerster wrote:
Hi,
* Robert Schweikert <rjschwei@suse.com> [2013-03-13 13:02]: > Just moved to 12.3 and noticed that when I start a terminal my > .cshrc file is not being sourced :( > > I use gnome-terminal, but the same problem occurs when using > xfce4-terminal. > > Any ideas on how to fix this?
I stopped using tcsh around seven years ago but I remember that .cshrc is always read when starting a shell, are you sure there is no .tcshrc which takes precedence over .cshrc?
Yes, I have no .tcshrc in my home directory.
Or is the problem rather that .login is not being sourced?
I do not know, how would I find out?
Well how do you know that .cshrc is not sourced now?
none of my alias' are available, my AWS environment variables are not set etc.
there is no syntax error in my .cshrc file, running "source .cshrc" in the shell works just fine.
I would just put "echo .cshrc" on top of the .cshrc and echo .login on top of .login and see what happens when opening xterm, xfce4-terminal and logging in from a console. On my system it works and I get ".cshrc" as expected, when enabling a login shell in xfce4-terminal I also see ".login".
In that case go to Preferences and enable "Run command as login shell" so you get a login shell.
Well I changed the prefrences of the profile and toggled "Run command as a login shell" on (although I didn't need this previously ;) ). But there was no change in behavior :( , I tested both gnome-terminal and xfce-terminal. When I start a new terminal .cshrc is still not sourced :(
How do I figure out what's going on here?
See above.
I think the problem is outside my local configuration. I guess have to work my way through all the steps in /etc that are supposed to happen :(
xterm behaves the same, i.e. it is broken as well.
I do not have a /etc/csh.cshrc.local or $HOME/.csh.expert file.
To follow up on this I just noticed something curious. On a from scratch installed system everything works as expected, i.e. when I start a terminal my .cshrc file is sourced :) . "Run as login shell" is NOT toggled on.
The system, experiencing the issue is one I upgraded from openSUSE 12.2 to 12.3
Thoughts?
That's expected behavior, "Run as login shell" determines whether ~/.login is sourced, not ~/.cshrc (just as if you logged in on a console or via ssh).
For whatever reason there was an empty .tcshrc file in my home directory. Removed it and viola everything works again. How the stray file get there will remain a mystery. Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-xfce+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xfce+owner@opensuse.org
* Robert Schweikert <rjschwei@suse.com> [2013-03-15 14:23]:
For whatever reason there was an empty .tcshrc file in my home directory. Removed it and viola everything works again.
How the stray file get there will remain a mystery.
That's what I suspected, maybe now is a good time to "mv .cshrc .tcshrc", the original BSD csh which reads .cshrc is not available in openSUSE (and has been replaced by tcsh even in the *BSDs many years ago). -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-xfce+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xfce+owner@opensuse.org
participants (2)
-
Guido Berhoerster
-
Robert Schweikert