From owner-freebsd-current@FreeBSD.ORG Wed Jul 28 19:38:57 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78314106566B for ; Wed, 28 Jul 2010 19:38:57 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 2E5528FC0C for ; Wed, 28 Jul 2010 19:38:57 +0000 (UTC) Received: from server.mypc.hu (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id D1DF414DC373; Wed, 28 Jul 2010 21:38:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at server.mypc.hu Received: from server.mypc.hu ([127.0.0.1]) by server.mypc.hu (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6UkSMItUZYnL; Wed, 28 Jul 2010 21:38:53 +0200 (CEST) Received: from [192.168.1.105] (catv-80-99-92-167.catv.broadband.hu [80.99.92.167]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 764B214DC368; Wed, 28 Jul 2010 21:38:53 +0200 (CEST) Message-ID: <4C50874B.4010000@FreeBSD.org> Date: Wed, 28 Jul 2010 21:38:51 +0200 From: Gabor Kovesdan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-PT; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <4C5040E8.3050304@FreeBSD.org> <4C504DEA.9070405@FreeBSD.org> <86wrsfk3oy.fsf@ds4.des.no> In-Reply-To: <86wrsfk3oy.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-current@FreeBSD.org, "b. f." Subject: Re: BSD grep fixes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2010 19:38:57 -0000 Em 2010.07.28. 17:48, Dag-Erling Smørgrav escreveu: > Gabor Kovesdan writes: > >> b. f. writes: >> >>> I don't think that the current behavior of bsdgrep is necessarily bad >>> -- in fact it seems to me to be simple and intuitive: nothing is >>> excluded or included implicitly, and (I think) the last match wins, >>> unlike in gnu grep. >>> >> Ok, thanks, then I'll just document it. >> > Uh, no. GNU grep's behavior is consistent with just about everything > else that has --include / --exclude options, e.g. tar and rsync. Please > change BSD grep's behavior to match GNU grep's. > Ok, thanks for mentioning this. I already have a patch to implement the same behaviour, I'll discuss it with my mentor and fix soon. Gabor