[arch-projects] [initscripts] [GIT] Arch Linux initscripts repository branch master updated. 2011.06.3-31-g824567c
d at falconindy.com
Sun Jun 19 13:15:49 EDT 2011
On Sun, Jun 19, 2011 at 07:09:15PM +0200, Seblu wrote:
> On Sun, Jun 19, 2011 at 6:59 PM, Tom Gundersen <tomegun at archlinux.org> wrote:
> > commit fe48fab2c2c35ccbfa3eec436d40739bc4b486da
> > Author: Dave Reisner <d at falconindy.com>
> > Date: Sun Jun 19 09:04:24 2011 -0400
> > rc.sysinit: avoid use of regex match for USE* vars
> > Although silly, this would positively match something such as
> > USRBTRFS=deadeyes
> > Instead, enumerate the match as a simple glob.
> I read some time ago that we could make match without case (on
> yes|YES). This is not more clean than this glob ?
> There was a reason for which we do not do that?
> Sébastien Luttringer
Yes, you can also use 'shopt -s nocasematch' for this kind of thing, but
I was afraid that it might negatively effect other comparisons
(including any user hooks). Since there aren't a whole lot of
permutations, I thought it simpler to just glob out the possibilities.
More information about the arch-projects