From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miles Bader Subject: Re: git-grep: option parsing conflicts with prefix-dash searches Date: Sat, 06 Feb 2010 17:17:31 +0900 Message-ID: <87mxzmsrqc.fsf@catnip.gol.com> References: <7vsk9fs1j9.fsf@alter.siamese.dyndns.org> <20100206035143.GA31784@sigill.intra.peff.net> <7v7hqrdkxb.fsf@alter.siamese.dyndns.org> Reply-To: Miles Bader Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jeff King , Jan Engelhardt , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Sat Feb 06 09:21:23 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ndfus-0000xV-Os for gcvg-git-2@lo.gmane.org; Sat, 06 Feb 2010 09:21:23 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751618Ab0BFIRq (ORCPT ); Sat, 6 Feb 2010 03:17:46 -0500 Received: from smtp12.dentaku.gol.com ([203.216.5.74]:43137 "EHLO smtp12.dentaku.gol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750885Ab0BFIRp (ORCPT ); Sat, 6 Feb 2010 03:17:45 -0500 Received: from 218.231.148.164.eo.eaccess.ne.jp ([218.231.148.164] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) id 1NdfrA-0006hS-De; Sat, 06 Feb 2010 17:17:32 +0900 Received: by catnip.gol.com (Postfix, from userid 1000) id 82B54DF8F; Sat, 6 Feb 2010 17:17:31 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: <7v7hqrdkxb.fsf@alter.siamese.dyndns.org> (Junio C. Hamano's message of "Fri, 05 Feb 2010 20:53:36 -0800") X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Junio C Hamano writes: > I have known GNU extended grep implementations long enough but never saw > that "--" used to quote a pattern. Is it worth supporting to begin with? Well, it is a natural consequence of the way command-line parsing works in typical GNU progs; "--" doesn't mean "files follow", it means "no more options".... -Miles -- I'd rather be consing.