Bug 8914 - rc.sysinit complains on ] error
rc.sysinit complains on ] error
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
6.1
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-01-27 03:32 EST by Daniel Stenberg
Modified: 2014-03-16 22:12 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-01-27 18:33:57 EST
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 Daniel Stenberg 2000-01-27 03:32:08 EST
The following piece of the /etc/rc.d/rc.sysinit script does not work
satisfactory when the directories in question are empty:

# Clean up /var
# I'd use find, but /usr may not be mounted.
for afile in /var/lock/* /var/run/*; do
   if [ -d $afile ]; then
      rm -f $afile/*
   else
      rm -f $afile
   fi
done

The if-condition should instead be written

   if [ -d "$afile" ]; then

The warning that is displayed is perfectly harmless but still annoying
since the user can't really know that it is this harmless...! ;-)
q
Comment 1 Bill Nottingham 2000-01-27 18:33:59 EST
Will be fixed in initscripts-4.85 when it's released.

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