Bug 4172 - incorrect csh syntax in /etc/profile.d/kde.csh
Summary: incorrect csh syntax in /etc/profile.d/kde.csh
Keywords:
Status: CLOSED DUPLICATE of bug 3686
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kdesupport
Version: 6.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
URL: http://www.crystalcave.net/~edh
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-07-23 01:11 UTC by shikari67
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-07-23 09:00:46 UTC
Embargoed:


Attachments (Terms of Use)

Description shikari67 1999-07-23 01:11:38 UTC
The /etc/profile.d/kde.csh init script has a bug.  It
appears to be sing sh(1) syntax to assign a variable, but
csh(1) requires the "set" keyword.  A diff follows, with
some logic/cosmetic tweaks.  Hope this helps!  --Eric

*** kde.csh.FCS Mon Jun 21 13:28:21 1999
--- kde.csh     Thu Jul 22 19:53:32 1999
***************
*** 1,13 ****
  # 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}"
--- 1,12 ----
  # 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 ( $status ) then
!     setenv PATH "${kdepath}:${PATH}"
  endif

Comment 1 Jeff Johnson 1999-07-23 09:00:59 UTC
*** 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.