In glob patterns, square brackets have a special meaning, that may be unexpected by the users. Thus we escape these brackets, so that the only remaining special characters are the * and ? wildcards. PR #16965.
Version