From owner-freebsd-current@FreeBSD.ORG Wed Jul 28 15:27:01 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 B1444106567B; Wed, 28 Jul 2010 15:27:01 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 20E9D8FC19; Wed, 28 Jul 2010 15:27:00 +0000 (UTC) Received: by wwa36 with SMTP id 36so467897wwa.31 for ; Wed, 28 Jul 2010 08:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=2Iyya+O5RHkx+nFS9POPkJoro5aSZ0b9HJyyka/JtOc=; b=BNSa15X9h8dpLAgGS7AT0hhZ13iePjx2xZCj1HE6HbN39A1jrXkyk1PYcLDA5WRXVA XRfkNQEG0KsiQ4lVAERfAMv+HRQbqyye8J6UrmzlBFwX+R+DRFmeNz8K/y5zdPJHxX3l Bsk2vvMwT64a/fY90p5ZO7xvl2ItUSRFkTrPs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=xtcryCn5dZWiBURJNuRt48/h6lzrD5TPvSpQAuy9H6JhwXmzRi7hzUcnHnUw4iM0ST WzWYtyzkpPz1CknfqNyl1uwSFkRoDoLumzh8UiyCam9Q25w9Wwz327NKYyBaQlA5oMWL RF3eKclqAjM64FDuqYgrUZAD6IAtdFVhguAAA= MIME-Version: 1.0 Received: by 10.216.177.140 with SMTP id d12mr10881883wem.37.1280330820010; Wed, 28 Jul 2010 08:27:00 -0700 (PDT) Received: by 10.216.171.10 with HTTP; Wed, 28 Jul 2010 08:26:59 -0700 (PDT) In-Reply-To: <4C5040E8.3050304@FreeBSD.org> References: <4C5040E8.3050304@FreeBSD.org> Date: Wed, 28 Jul 2010 15:26:59 +0000 Message-ID: From: "b. f." To: Gabor Kovesdan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@FreeBSD.org Subject: Re: BSD grep fixes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com 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 15:27:01 -0000 On 7/28/10, Gabor Kovesdan wrote: > Em 2010.07.27. 5:59, b. f. escreveu: > Thanks for bringing this up, I'll take a look and try to implement the > same behaviour. And I will also document the behaviour. 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. I mention it only because it is different, and you may want to consider how closely you want it to mimic the behavior of gnu grep for the sake of compatibility. If bsdgrep already passed a ports exp-run, and build/installworld now work without any problems, then it may be simpler to just retain the current behavior. Either way, though, the effect of overlapping --(in|ex)clude(-dir) options should be explicitly mentioned in the manpage. Thank you, by the way, for your efforts to provide us with good BSD-licensed tools. I hope that you can find the time and energy to continue with the iconv, regex, and other text-processing tool improvements. b.