Re: please tell me why I getting Variable syntax while using .csh (849 Views)
Reply
Honored Contributor
Johnson Punniyalingam
Posts: 2,246
Registered: ‎09-22-2008
Message 1 of 3 (853 Views)

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
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 2 of 3 (850 Views)

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
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 3 of 3 (849 Views)

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...

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation