Bug 3811

Summary: /etc/profile.d/kde.csh
Product: [Retired] Red Hat Linux Reporter: klmitch
Component: kdesupportAssignee: David Lawrence <dkl>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: klmitch
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-06-30 22:53:10 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 klmitch 1999-06-29 17:35:11 UTC
1) var=value syntax doesn't work in csh
2) If the bad syntax is fixed, "if" bails out with
   "Expression Syntax."

Both of these problems mean my tcsh dot files don't get
run.

The relevant lines are flagged below with '*':
------------------------------------------------------------
# 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}"
------------------------------------------------------------
Suggested fixes:

First line should read, 'set kdepath = "${KDEDIR}/bin"'
I'm not sure about the appropriate if syntax; maybe some
appropriately placed backtics would fix it.

Comment 1 Jeff Johnson 1999-06-30 22:53:59 UTC
*** This bug has been marked as a duplicate of 3686 ***