From: Andreas Schwab Date: Sun, 27 Sep 2015 08:58:06 GMT Subject: Re: Single brackets matching in .gitignore rules Message-ID: In-Reply-To: <2606743.RipZrg6Xoz@pinguin> Andrey Loskutov writes: > 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."