Bug 4568
| Summary: | c-shell syntax errors in file /etc/profile.d/kde.csh | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | dc |
| Component: | kdesupport | Assignee: | David Lawrence <dkl> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 1999-08-18 15:29:28 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Please excuse typo in previous commentary. Phrase should have read "either to /bin/csh or /bin/tcsh." Thank you, David Cohn |
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 exit endif endif setenv KDEDIR /usr kdepath="${KDEDIR}/bin" if ( echo ${PATH} | grep -q ${kdepath} ) then exit endif setenv PATH "${kdepath}:${PATH}" # end orignal version ------------------------------------------ # repaired KDE initialization script (csh) if ( $?KDEDIR ) then if ( $KDEDIR == "/usr" ) then exit endif endif setenv KDEDIR /usr set kdepath="${KDEDIR}/bin" echo ${PATH} | grep -q ${kdepath} if ( $? == 0) then exit endif setenv PATH "${kdepath}:${PATH}" Thank you, David Cohn, Department of Technology Market News International 100 William Street, 3rd Floor New York, NY 10038 212-509-4444