From: Junio C Hamano Subject: Re: [PATCH v2] Support "\" in non-wildcard exclusion entries Date: Tue, 10 Feb 2009 08:41:12 -0800 Message-ID: <7v7i3ynt1z.fsf@gitster.siamese.dyndns.org> References: <20090210121149.GA1226@pvv.org> <20090210125800.GA14800@pvv.org> <20090210142017.GA16478@pvv.org> <20090210143742.GB16478@pvv.org> <7vab8upb5v.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Johannes Schindelin , git@vger.kernel.org To: Finn Arne Gangstad X-From: git-owner@vger.kernel.org Tue Feb 10 17:42:56 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1LWvhC-0005cX-CI for gcvg-git-2@gmane.org; Tue, 10 Feb 2009 17:42:50 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754195AbZBJQlX (ORCPT ); Tue, 10 Feb 2009 11:41:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754146AbZBJQlW (ORCPT ); Tue, 10 Feb 2009 11:41:22 -0500 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:64938 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754008AbZBJQlW (ORCPT ); Tue, 10 Feb 2009 11:41:22 -0500 Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id B6466981B9; Tue, 10 Feb 2009 11:41:18 -0500 (EST) Received: from pobox.com (unknown [68.225.240.211]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 5C554981B8; Tue, 10 Feb 2009 11:41:14 -0500 (EST) In-Reply-To: <7vab8upb5v.fsf@gitster.siamese.dyndns.org> (Junio C. Hamano's message of "Tue, 10 Feb 2009 07:24:44 -0800") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Pobox-Relay-ID: A425B0F4-F791-11DD-A6E0-8B21C92D7133-77302942!a-sasl-fastnet.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Junio C Hamano writes: > Finn Arne Gangstad writes: > >>> > +cat >.gitignore <>> >>> You probably want to use \EOF here. >> >> I am curious, does it matter? Most of the tests use EOF and not \EOF. > > If you want the same shell variable expansion and quoting rules as you get > inside double-quote pair, you would say < quote the EOF, no such substitutions happen. > > In this particular case, you want what you typed there literally in the > file, so <<\EOF would be more correct, even though \# expands to \# > itself. > > IOW, your current list of patterns does not happen to have anything like > $var nor \\ that would make a difference, but to protect future breakages > by people adding more patterns there, it is better to say <<\EOF when you > know you are not asking for any funny expansion to be explicit. Oh, by the way, do we really want to add a new test script? I am wondering why the test is not an update to an existing test for the exclusion feature, such as t/t3001-ls-files-others-exclude.sh