Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 8914 - rc.sysinit complains on ] error
rc.sysinit complains on ] error
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
Depends On:
  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:
Last Closed: 2000-01-27 18:33:57 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 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/*
      rm -f $afile

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...! ;-)
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.