Re: Single brackets matching in .gitignore rules
Andrey Loskutov <loskutov@gmx.de> writes:
Show 12 quoted lines
> Next, the surprising table for ']':
> ----------------------
> rule | file | match?
> ----------------------
> ] ] true
> ]* ] true
> *] ] true
> *] a] true
> ----------------------
>
> Here Git does not give up on parsing, treats unmatched ']' character literally, and doesn't dislike that it is an "unmatched" end of a broken character group.
> Why?
] by itself is not special in a glob.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."