On Sun, Jun 19, 2011 at 07:09:15PM +0200, Seblu wrote:
On Sun, Jun 19, 2011 at 6:59 PM, Tom Gundersen <tomegun@archlinux.org> wrote:
commit fe48fab2c2c35ccbfa3eec436d40739bc4b486da Author: Dave Reisner <d@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 www.seblu.net
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. d