added proc test::limit_scope, used for scoping cli regexps