Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 4557

Summary: bugs in kde.csh in kdesupport-1.1.1-1
Product: [Retired] Red Hat Linux Reporter: david_pedersen
Component: kdesupportAssignee: David Lawrence <dkl>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: high    
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-08-18 15:28:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description david_pedersen 1999-08-16 23:39:09 UTC
The file kde.csh has several defects. If I'm a user and
attempt to login to my machine, the sourcing of kde.csh will
fail...

list of bugs
[1] didn't use 'set' when specifying 'kdepath'
[2] final 'if...then' doesn't check exit status, instead
checks output of command 'echo $path | grep -q
$kdepath'..need to look at exit status by either using {}
around command or via the $status variable

Here is a script with the issues fixed...just do a diff with
original to see problems...
-----------

# KDE initialization script (csh)
if ( $?KDEDIR ) then
         if ( $KDEDIR == "/usr" ) then
         exit
         endif
endif
setenv KDEDIR /usr
set kdepath="${KDEDIR}/bin"

echo $path | grep $kdepath > /dev/null
if ( $status ) then
 exit
endif

setenv PATH "${kdepath}:${PATH}"

Comment 1 Jeff Johnson 1999-08-18 15:28:59 UTC
*** This bug has been marked as a duplicate of 3686 ***