Santiago Vila wrote:
I find a little bit odd that only the left brace is escaped in the git commit above. Sure, it will remove the warning about the left brace, but it looks a little bit inconsistent.
It depends on which sort of consistency one wants. I mildly prefer omitting backslashes when not needed, as this helps avoid usages like:
grep '\[.*\]' *.cwhich has undefined behavior due to the '\]'. Admittedly that's a POSIX regular expression, not Perl.