Bug 11399 - /etc/rc.d/rc syntax error (?)
/etc/rc.d/rc syntax error (?)
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
6.2
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-05-13 08:58 EDT by matthew.markopoulos
Modified: 2014-03-16 22:13 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-05-13 08:58:32 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 matthew.markopoulos 2000-05-13 08:58:32 EDT
Line 35: [ "$1" != "" ] && runlevel="$argv1"

I don't see the logic of this command. After the 'set' command on line 17,
$1 will be the previous runlevel. Why test whether this is non-null before
assigning $argv1 to runlevel? Suggested syntax:

Line 35: [ -n "$argv1" ] && runlevel="$argv1"

--
Matthew Markopoulos
Comment 1 Bill Nottingham 2000-08-07 01:46:58 EDT
Thanks for the report; changed in 5.40-1.

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