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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I cannot reproduce the problem here (Fedora Core 5 fresh install, fully
updated): (just to be sure, I ran it as root, but it ran on my own
account just as well)

[root@schelde ~]# /var/tmp/test.csh
if ( "$group" == "$user" && $uid > 99 ) then
else
endif
if ( $?prompt ) then
if ( $?tcsh ) then
else
endif
endif
if ( $?tcsh ) then
endif
if ( -d /etc/profile.d ) then
foreach i ( /etc/profile.d/*.csh )
if ( -r $i ) then
endif
end
endif

echo " I'm here"

On Thu, Aug 24, 2006 at 11:20:53PM -0700, Robinson Tiemuqinke wrote:
> 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@www ~]# cat /var/tmp/test.csh
> #!/bin/tcsh -Xvn
> echo " I'm here"
> [root@www ~]#
> 
> [root@www ~]# /var/tmp/test.csh
> if ( "$group" == "$user" && $uid > 99 ) then
> endif
> if ( $?prompt ) then
> $?prompt: No match.
> [root@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 
> 
> 
> 
> ------------------------------


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux