From: Finn Arne Gangstad Date: Tue, 10 Feb 2009 14:37:42 GMT Subject: Re: [PATCH v2] Support "\" in non-wildcard exclusion entries Message-ID: <20090210143742.GB16478@pvv.org> In-Reply-To: On Tue, Feb 10, 2009 at 03:27:43PM +0100, Johannes Schindelin wrote: > > + > > +. ./test-lib.sh > > + > > +touch \#ignore1 && > > In other tests, we avoid 'touch' (IIRC it is not available everywhere or > some such), and we write ': > \#ignore1' instead. Will fix it up after seeing if there are some other comments. > > BTW we do not need the # in the name, it could be any letter, right? > (Just for my understanding, not as a request to change it.) So far I have only had to use \ in exclusion rules starting with #, since they would otherwise be interpreted as comments, but it could be any character that \ would not change the meaning of. I am not sure what fnmatch would do with \t, \r and \n for example. > > +cat >.gitignore < > You probably want to use \EOF here. I am curious, does it matter? Most of the tests use EOF and not \EOF. - Finn Arne