From owner-freebsd-ports@FreeBSD.ORG Mon Aug 4 19:19:33 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40C3910657BA for ; Mon, 4 Aug 2008 19:19:33 +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 EF0798FC0A for ; Mon, 4 Aug 2008 19:19:32 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 8724614D5F84; Mon, 4 Aug 2008 20:59:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.mypc.hu ([127.0.0.1]) by localhost (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id J+HK57ejjzL0; Mon, 4 Aug 2008 20:59:43 +0200 (CEST) Received: from [192.168.1.101] (catv-50629c59.catv.broadband.hu [80.98.156.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id E0FC314D298B; Mon, 4 Aug 2008 20:59:42 +0200 (CEST) Message-ID: <4897518D.4090001@FreeBSD.org> Date: Mon, 04 Aug 2008 20:59:25 +0200 From: =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Chuck Swiger References: <56E45E0F-29D4-4CA8-9936-384405AB874A@mac.com> In-Reply-To: <56E45E0F-29D4-4CA8-9936-384405AB874A@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD Ports Subject: Re: bsd-grep-20080725_1 -v flag busted... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 19:19:33 -0000 Chuck Swiger escribió: > > I'd just updated the BSD grep port to bsd-grep-20080725_1, but > regrettably have noticed that many things using grep stopped working. > For example, running GNU-style ./configure hangs here: > > configure: creating ./config.status > load: 1.15 cmd: sh 72964 [runnable] 7.60u 95.78s 14% 2260k > > A trivial test case: > > % echo 'fee\nfi\nfoe\nfum' | ./grep -v fi > % echo 'fee\nfi\nfoe\nfum' | /usr/bin/grep -v fi > fee > foe > fum > % ./grep --version > grep (BSD grep) 2.5.1-FreeBSD Hello Chuck, thanks for your notes. It seems very strange to me, because GNU grep produces the same output for me. Apart from this, the -v flag was really broken, but I applied some fixes before updating the port and in the version, which I committer, I thought that the -v flag was compatible. Here is what I get at the moment: > echo 'fee\nfi\nfoe\nfum' | ./grep -v fi > echo 'fee\nfi\nfoe\nfum' | /usr/bin/grep -v fi > /usr/bin/grep -V grep (GNU grep) 2.5.1-FreeBSD Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. It's still the same, thus I don't understand how you could produce that output with GNU grep. Best, -- Gabor Kovesdan EMAIL: gabor@FreeBSD.org WWW: http://www.kovesdan.org