Page 1 of 1

[SOLVED] changing from bourne/bash to C shell

Posted: 2010/08/10 22:29:11
by jane
Hi,

I am having issues with my centos 5.5 2.6.18-194.8.1.el5 #1 SMP x86_64 x86_64 x86_64 GNU/Linux.

When I change my shell

chsh jane
/bin/csh

logout then log back in. I get this error: LANGUAGE_TERRITORY: Undefined variable.

Thanks in advance.

Jane

[SOLVED] changing from bourne/bash to C shell

Posted: 2010/08/11 02:07:02
by pschaff
My guess is that the variable LANGUAGE_TERRITORY is referenced somewhere, perhaps in the user's .??* files, but is undefined. I am unable to reproduce the error when I change a user's shell to /bin/csh.

Try (as root) [code]
grep LANGUAGE_TERRITORY ~jane/.??*
find /etc -type f -exec grep LANGUAGE_TERRITORY {} \; -ls
[/code]

Re: changing from bourne/bash to C shell

Posted: 2010/08/18 00:59:44
by jane
found it! Thank you Phil. It was on my fortran.csh, I revert back to the default bash shell. I do not get the message anymore.

=)
Jane

Re: [SOLVED] changing from bourne/bash to C shell

Posted: 2010/08/18 01:57:33
by pschaff
You are welcome. Labeling the topic [SOLVED] for posterity.