--- - branch: MAIN date: Sat Apr 18 12:21:11 UTC 2020 files: - new: '1.77' old: '1.76' path: pkgsrc/mk/subst.mk pathrev: pkgsrc/mk/subst.mk@1.77 type: modified - new: '1.16' old: '1.15' path: pkgsrc/regress/infra-unittests/subst.sh pathrev: pkgsrc/regress/infra-unittests/subst.sh@1.16 type: modified id: 20200418T122111Z.349e0d38d27c4c18a1727931f089db33a770be4b log: | mk/subst.mk: avoid undefined behavior in regular expressions https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html says in section 9.3.2 BRE Ordinary Characters that only very few characters may be preceded with a backslash. As a side effect, this change allows parentheses in the variable names listed in SUBST_VARS (even if that will never happen in practice). The reason that the regression test had not replaced VAR.[] before was simply that this variable had not been listed in SUBST_VARS. module: pkgsrc subject: 'CVS commit: pkgsrc' unixtime: '1587212471' user: rillig