Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

please tell me why I getting Variable syntax while using .csh

Johnson Punniyalingam
Honored Contributor

please tell me why I getting Variable syntax while using .csh

login as: testuser
Using keyboard-interactive authentication.
Password:
Last login: Tue Oct 18 00:42:48 2011 from 43.68.26.11
Variable syntax

hpux_test_server% ls -la

total 8
drwxr-xr-x 2 testuser max 1024 Oct 17 23:35 .
drwxr-xr-x 3 root root 512 Oct 17 22:47 ..
-rw-r--r-- 1 testuser max 32 Oct 18 00:44 .cshrc

 

if use other shell , sh or bash...

 

# su - testuser

-bash-3.00$ ls -la
total 8
drwxr-xr-x 2 testuser max 1024 Oct 17 23:35 .
drwxr-xr-x 3 root root 512 Oct 17 22:47 ..
-rw------- 1 testuser max124 Oct 18 00:44 .bash_history
-rw-r--r-- 1 testuser max 32 Oct 18 00:44 .cshrc
-bash-3.00$

 

Problems are common to all, but attitude makes the difference
2 REPLIES
Pete Randall
Outstanding Contributor

Re: please tell me why I getting Variable syntax while using .csh

Probably one of the login profile entries that gets invoked when logging in with csh (why in heaven's name would you use csh???).  Take a look at .cshrc to start with.


Pete
Highlighted
James R. Ferguson
Acclaimed Contributor

Re: please tell me why I getting Variable syntax while using .csh

Hi:

 

It would appear that the syntax of your login files --- '.cshrc' and '.login' in your HOME directory.  Look at '/etc/csh.login' too.

 

The C-shell is considered to be hopelessly broken.  Shells like 'tcsh' are said to correct many of the the deficiencies. If you want to understand why the C-shell is an abomination, read this classic:

 

http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/



Regards!

 

...JRF...