Bug 4557 - bugs in kde.csh in kdesupport-1.1.1-1
bugs in kde.csh in kdesupport-1.1.1-1
Status: CLOSED DUPLICATE of bug 3686
Product: Red Hat Linux
Classification: Retired
Component: kdesupport (Show other bugs)
6.0
i386 Linux
high Severity medium
: ---
: ---
Assigned To: David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-08-16 19:39 EDT by david_pedersen
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-08-18 11:28:41 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 david_pedersen 1999-08-16 19:39:09 EDT
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 11:28:59 EDT
*** 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.