Comment 9 for bug 1273225

Revision history for this message
Goran Miskovic (schkovich) wrote :

Ondrej, what is reasoning behind mandatory space before priority???

Why it can't be:
;priority=30
but it has to be
; priority=30

A bit of flexibility would be appreciated. :)

Following regex will match both ;priority=30 and ; priority=30
priority=$(sed -ne "s/^;[ ]\?priority=\([0-9]\+\)$/\\1/p" $source_ini)

The problem I actually faced is that Augeas PHP lens does not allow space(s) at the beginning of comments. In combination with mandatory space after semicolon it makes use of automation tools such as Puppet impossible.