Bug 5062 - Scripting in /etc/profile.d/kde.csh is incorrect
Scripting in /etc/profile.d/kde.csh is incorrect
Status: CLOSED NEXTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: kdesupport (Show other bugs)
6.0
i386 Linux
medium Severity high
: ---
: ---
Assigned To: David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-09-10 21:46 EDT by mrovner
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:
Environment:
Last Closed: 1999-09-24 15:55:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description mrovner 1999-09-10 21:46:32 EDT
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 15:55:59 EDT
fixed for next release.

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