Bug 5062

Summary: Scripting in /etc/profile.d/kde.csh is incorrect
Product: [Retired] Red Hat Linux Reporter: mrovner
Component: kdesupportAssignee: David Lawrence <dkl>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-09-24 19:55:17 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:

Description mrovner 1999-09-11 01:46:32 UTC
Script has sh code where csh code should be in two places

The lines are:

kdepath="${KDEDIR}/bin"
if ( echo ${PATH} | grep -q ${kdepath} ) then


They should read:

set kdepath="${KDEDIR}/bin"
if ( `echo ${PATH} | grep -q ${kdepath}` ) then

The problem is that csh doesn't take the "variable=value"
that sh does, and if you leave out the grave accents,
csh, or more precisely tcsh, interprets the | as an
arithmetical operator and fails.

With both these changes, the script seems to function
correctly.  Without it, it causes and error and stops
login script processing, but not login itself.

Comment 1 Preston Brown 1999-09-24 19:55:59 UTC
fixed for next release.