[arch-projects] [INITSCRIPTS][PATCH 4/6] Use bash case modification to check yes/no

Sébastien Luttringer seblu at seblu.net
Tue Jun 12 06:33:57 EDT 2012

On Tue, Jun 12, 2012 at 12:16 PM, Tom Gundersen <teg at jklm.no> wrote:
> I don't really see the benefit of this change, so I'm inclined to leave it out.

I agree benefits are slight but:
- it's nicer to read (and write)
- this give a generic way of handling string comparaison from config
options. This cannot be an option with long strings like.

$toto == [Aa][Ll][Pp][Hh][Aa][Bb][Ee][Tt]
${toto,,} == alphabet


Sébastien "Seblu" Luttringer

More information about the arch-projects mailing list