From owner-freebsd-current@FreeBSD.ORG Tue Jul 27 03:59:38 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 5B851106564A for ; Tue, 27 Jul 2010 03:59:38 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B35CE8FC14 for ; Tue, 27 Jul 2010 03:59:37 +0000 (UTC) Received: by wyj26 with SMTP id 26so3319088wyj.13 for ; Mon, 26 Jul 2010 20:59:36 -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:date :message-id:subject:from:to:cc:content-type; bh=nWr/3uTELQW+OVj75bn7WFXGteJvMKuR4WBWCF65q2o=; b=nxh+6CbUb4lcjKr/3vtJCZeAISCNZZ9CDX4RJohD8edRI2377RI+h0JT7x1cEetgy8 HsNNaHjKWe84UslEjWYrqJh/00vhb8mZHped5WrXZdnOytquftWusF417XrKGTngfVfc VAX7nop0PwCOvQj1lmmWBf5RK9+QCLD1TXZck= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=iuUUDXN2OLF6WguhTykwuBMzyPmUhyN1TD7uQLl8EIJ9+p+ryCvp8jGyqEe1j9KXaK EwdX7x1WhHsiWbGSiK5PdNSNU7gPf3tgdkyPagOz+AvHF9mLPHSxdsEBAKcfHG8+SB8x pPOuTDMqvoqMBmZa3cChWtzA92cl8YskOnmuQ= MIME-Version: 1.0 Received: by 10.216.49.212 with SMTP id x62mr4484016web.55.1280203176454; Mon, 26 Jul 2010 20:59:36 -0700 (PDT) Received: by 10.216.171.10 with HTTP; Mon, 26 Jul 2010 20:59:36 -0700 (PDT) Date: Tue, 27 Jul 2010 03:59:36 +0000 Message-ID: From: "b. f." To: freebsd-current@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: gabor@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: Tue, 27 Jul 2010 03:59:38 -0000 Other important differences between bsdgrep and GNU grep: The --include option in bsdgrep does not have the same effect as the corresponding option in GNU grep -- in GNU grep, that option causes _only_ those files matching the file inclusion pattern to be searched. To obtain the same behavior in bsdgrep, one must issue something like --exclude '*' --include pattern. The effect of multiple overlapping --include and --exclude options is different in the two greps. It would be wise to add comments about precedence of such options in the bsdgrep manpage, as is done, for example, in bsdtar(1). b.