Bug 58983 - startkde makes wrong assumptions about the shell environment
Summary: startkde makes wrong assumptions about the shell environment
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kdebase
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-28 21:45 UTC by Nicholas Miell
Modified: 2007-04-18 16:39 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-01-28 21:45:54 UTC
Embargoed:


Attachments (Terms of Use)

Description Nicholas Miell 2002-01-28 21:45:47 UTC
startkde assumes that df produces output in standard form (i.e. $BLOCK_SIZE or 
$DF_BLOCK_SIZE isn't set to human-readable or si) and that the noclobber shell 
option isn't set

Version-Release number of selected component (if applicable):
kdebase-2.2.2-1

How reproducible:
Always

Steps to Reproduce:
1. arrange for "export BLOCK_SIZE=human-readable" and "set -o noclobber"
to be in a start-up file that is processed when the startkde script is
loaded (~/.bashrc will probably work, I don't really understand how bash 
decides to load these files)
2. run startkde

Actual Results:
The script dies because $space_tmp and $space_home aren't purely numbers
(they have letters like "M" or "G" in them).

If you fix that, the script dies because
"testfile_tmp=`mktemp /tmp/KDE.startkde.XXXXXX`; echo TEXT_TEXT > 
$testfile_tmp" doesn't work with noclobber set.

Expected Results:  Everything Just Works (TM).

Comment 1 Karsten Hopp 2002-07-24 10:36:44 UTC
It's bad idea to use noclobber, many scripts may/will fail if you 
set this variable. Nonetheless I've added a workaround to startkde.


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