Bug 94 - script 'rc' glob is too general
script 'rc' glob is too general
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
5.0
All Linux
low Severity low
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1998-11-16 12:18 EST by saint
Modified: 2014-03-16 22:08 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1998-11-22 11:11:49 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 saint 1998-11-16 12:18:25 EST
If the convention is Snn and Knn as a prefix to script names
in the various run level folders, then shouldn't the glob
be more specific in the script /etc/rc.d/rc?

It could be:
    for i in /etc/rc.d/rc$runlevel.d/K[0-9][0-9]*; do
        ...
    done
and
    for i in /etc/rc.d/rc$runlevel.d/S[0-9][0-9]*; do
        ...
    done

It is:
    for i in /etc/rc.d/rc$runlevel.d/K*; do
        ...
    done
and
    for i in /etc/rc.d/rc$runlevel.d/S*; do
        ...
    done
Comment 1 Preston Brown 1998-11-17 10:49:59 EST
changed priority, but he does have a point.  Seems reasonable.
Comment 2 Jeff Johnson 1998-11-22 11:09:59 EST
The current implementation (using K* rather than K[0-9][0-9]*) is
identical to that implemented in SVR4 from which the entire
convention has been borrowed. Adding a more restrictive glob
solves no purpose that I can fathom (other than the obvious
non-problem).

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