Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 9665 - /etc/profile.d/kde.sh is shel dialect specific
/etc/profile.d/kde.sh is shel dialect specific
Product: Red Hat Linux
Classification: Retired
Component: kdesupport (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Depends On:
  Show dependency treegraph
Reported: 2000-02-21 22:40 EST by Cameron Simpson
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:
Last Closed: 2000-02-21 22:40:01 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Cameron Simpson 2000-02-21 22:40:01 EST
The kde.sh file says
	if ! echo $PATH | grep -q $kdepath; then
This is a bash-specific shellism. It is VITALLY IMPORTANT that
shell startup files do not contain peculiarities of one shell but
are portable shell. My shell for example is a Bourne shell which does
not have the ! builtin (and certainly not anything which acts the
way the above script appears to desire - !ing the entire pipeline).

A portable way to write this would be
	if echo "$PATH" | grep -v -q "$kdepath"; then
which would work in any Bourne shell.
Comment 1 Bernhard Rosenkraenzer 2000-06-12 17:25:02 EDT
Thanks, fixed.

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