long-live tcsh | /etc/csh.cshrc problem on redhat/fedora core Linux
David Jansen
jansen at strw.leidenuniv.nl
Fri Aug 25 13:15:41 UTC 2006
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 at 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 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