Bug 199931 - invalid bash test in /etc/profile.d/kde.sh
Summary: invalid bash test in /etc/profile.d/kde.sh
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kdelibs
Version: 5
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-24 13:30 UTC by Chris Moller
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-24 13:38:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chris Moller 2006-07-24 13:30:04 UTC
Description of problem:


Version-Release number of selected component (if applicable): kdelibs-3.5.3-0.4.fc5

How reproducible:

ssh from one machine into an fc5 machine.

Steps to Reproduce:
      ssh hotbox                         (hotboxis running Fedora Core release 5
(Bordeaux))
  
Actual results:
    An error message:  /etc/profile.d/kde.sh:4: = not found

Expected results:
     No error messages.

Additional info:

Line 4 of  /etc/profile.d/kde.sh is:

     if [ xx"$PRELINKING" == "xxyes" ] ; then

(or something like that; I've changed it.   But the point is that...)
The [....] construct in bash is invalid for comparison tests; it should be [[....]]

      if [[ xx"$PRELINKING" == "xxyes" ]] ; then

(I bugzilla-ed the kde guys about this, but they said it was a Fedora problem...)

Comment 1 Than Ngo 2006-07-24 13:38:37 UTC
yes, it's not upstream bug. The bug has been already fixed in 
kdelibs-3.5.3-0.4.fc5. Your /etc/profile.d/kde.sh has not been upgraded 
because you have changed it and it's marked as noreplace.




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