long-live tcsh | /etc/csh.cshrc problem on redhat/fedora core Linux

Robinson Tiemuqinke hahaha_30k at yahoo.com
Fri Aug 25 06:20:53 UTC 2006


Hi,

 There is long-live annoying problem/issue with
redhat/Fedora Core Linux since redhat 7.2, as far as I
know. the '$?variable' expression in /etc/csh.cshrc
file blocks users' csh/tcsh scripts from running all
the time.

give the following test.csh script as an simple
example:

[root at www ~]# cat /var/tmp/test.csh
#!/bin/tcsh -Xvn
echo " I'm here"
[root at www ~]#

[root at www ~]# /var/tmp/test.csh
if ( "$group" == "$user" && $uid > 99 ) then
endif
if ( $?prompt ) then
$?prompt: No match.
[root at www ~]#
 
The script fails debugging. it fails at the line "if
($?prompt) then" inside /etc/csh.cshrc! 

To successfully run and debug csh/tcsh scripts, we
have renamed the /etc/csh.cshrc to
/etc/csh.cshrc_redhatShit since redhat 7.2. 

 Any one can shed a light on this "problem"?

 Thanks.

--Robinson

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the fedora-list mailing list