clarify variablesmatching() semantics, asked by user

(cherry picked from commit f1bfc441eab5d68266ee67b331026c237c0925eb)