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

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

 



Robinson Tiemuqinke <hahaha_30k@xxxxxxxxx> 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

Two comments:

1) The problem only occurs if you use the "n" option. That is, running test.csh with tcsh invoked with "#!/bin/tcsh -Xv" works. 2) The problem goes away under FC5. I was only able to reproduce the problem with FC4.

Now here's something even weirder. The version of tcsh as given by "echo $version" is identical between FC4 and FC5 and the /etc/csh.cshrc files also appear to be identical. There is a difference between the rpm versions so maybe somebody at Red Hat fixed it in FC5. Just to make the story complete, the same test fails differently when run on a CentOS 4.3 (RHEL clone) box.

Cheers,
Dave

--
Politics, n. Strife of interests masquerading as a contest of principles.
-- Ambrose Bierce

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux