From owner-freebsd-wip-status@FreeBSD.ORG Mon Jun 16 21:39:33 2008 Return-Path: Delivered-To: freebsd-wip-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58271106564A for ; Mon, 16 Jun 2008 21:39:33 +0000 (UTC) (envelope-from gabor@freebsd.org) Received: from viefep23-int.chello.at (viefep18-int.chello.at [213.46.255.22]) by mx1.freebsd.org (Postfix) with ESMTP id 9E3438FC1B for ; Mon, 16 Jun 2008 21:39:32 +0000 (UTC) (envelope-from gabor@freebsd.org) Received: from edge02.upc.biz ([192.168.13.237]) by viefep16-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20080616212202.JTRV13767.viefep16-int.chello.at@edge02.upc.biz> for ; Mon, 16 Jun 2008 23:22:02 +0200 Received: from [89.134.207.231] ([89.134.207.231]) by edge02.upc.biz with edge02 id elN11Z01F505Fu101lN2zu; Mon, 16 Jun 2008 23:22:02 +0200 X-SourceIP: 89.134.207.231 Message-ID: <4856D97D.3060505@FreeBSD.org> Date: Mon, 16 Jun 2008 23:22:05 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-wip-status@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 16 Jun 2008 22:56:20 +0000 Cc: Subject: BSD-licensed grep X-BeenThere: freebsd-wip-status@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Work-In-Progress Status List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2008 21:39:33 -0000 Hello All, I've basically terminated te feature-completion of the BSD-licensed grep from OpenBSD. It means, that I've accomplished the following tasks: - Implement --label - Implement --null - Implement --color / --colour - Implement -D / --devices - Implement -H / --with-filename - Implement -J / --bz2decompress - Implement -d / --directories - Implement -m / --max-count - Implement -o / --only-matching - Add --help - Eliminate warnings - style(9) cleanup I've made some preliminary tests with the fgrep and normal grep behaviour and it seems that they can achieve the same speed. What remains is to do more test about the performance and the compatibility with the GNU version. You can test this version easily by installing the textproc/bsdgrep port, which creates two symlinks: bsdgrep points to this version and gnugrep points to the base grep. Any help and comments are welcome. Regards, Gábor Kövedán P.S.: Acknowledgements are going to Max Khon, who is my mentor in this program, to Diomidis Spinellis due to the his useful comments and to Sean C. Farley who worked on this implementation of grep before and provided some preliminary comments and suggestions before I started working on this project, and of course, to Google for sponsoring this piece of work.