Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 4568 - c-shell syntax errors in file /etc/profile.d/kde.csh
c-shell syntax errors in file /etc/profile.d/kde.csh
Status: CLOSED DUPLICATE of bug 3686
Product: Red Hat Linux
Classification: Retired
Component: kdesupport (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
Depends On:
  Show dependency treegraph
Reported: 1999-08-17 09:23 EDT by dc
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-08-18 11:29:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description dc 1999-08-17 09:23:33 EDT
Syntax errors in /etc/profile.d/kde.csh (a c-shell script)
introduce problems for user accounts that have their shell
field in /etc/passwd set either to /bin/csh or /bin/csh.

Specifically, the syntax errors in kde.csh prevent the
startup files ~/.login and/or ~/.cshrc from executing.

I have resolved this bug by removing the syntax and logical
errors in kde.csh. Here is a copy of the original kde.csh,
followed by my repaired version. I leave it to Red Hat to
evaluate and/or improve upon my solution, as is appropriate:

Original version of kde.csh:

# KDE initialization script (csh)
if ( $?KDEDIR ) then
         if ( $KDEDIR == "/usr" ) then
setenv KDEDIR /usr
if ( echo ${PATH} | grep -q ${kdepath} ) then

setenv PATH "${kdepath}:${PATH}"
# end orignal version


# repaired KDE initialization script (csh)
if ( $?KDEDIR ) then
         if ( $KDEDIR == "/usr" ) then

setenv KDEDIR /usr
set kdepath="${KDEDIR}/bin"

echo ${PATH} | grep -q ${kdepath}
if ( $? == 0) then

setenv PATH "${kdepath}:${PATH}"

Thank you,
David Cohn,
Department of Technology
Market News International
100 William Street, 3rd Floor
New York, NY 10038
Comment 1 dc 1999-08-17 09:37:59 EDT
Please excuse typo in previous commentary.  Phrase should have read
"either to /bin/csh or /bin/tcsh."

Thank you,

David Cohn
Comment 2 Jeff Johnson 1999-08-18 11:29:59 EDT
*** This bug has been marked as a duplicate of 3686 ***

Note You need to log in before you can comment on or make changes to this bug.