From owner-freebsd-current@FreeBSD.ORG Mon Sep 19 01:40:07 2011 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 C51DC106566B; Mon, 19 Sep 2011 01:40:07 +0000 (UTC) (envelope-from poyopoyo@puripuri.plala.or.jp) Received: from msa04b.plala.or.jp (msa04.plala.or.jp [58.93.240.4]) by mx1.freebsd.org (Postfix) with ESMTP id 0AA8D8FC13; Mon, 19 Sep 2011 01:40:06 +0000 (UTC) Received: from i125-202-7-242.s02.a026.ap.plala.or.jp ([125.202.7.242]) by msa04b.plala.or.jp with ESMTP id <20110919014005.VOWJ10746.msa04b.plala.or.jp@i125-202-7-242.s02.a026.ap.plala.or.jp>; Mon, 19 Sep 2011 10:40:05 +0900 Date: Mon, 19 Sep 2011 10:40:04 +0900 Message-ID: <86ehzds423.wl%poyopoyo@puripuri.plala.or.jp> From: poyopoyo@puripuri.plala.or.jp To: Gabor Kovesdan User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.3 (amd64-portbld-freebsd9.0) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-VirusScan: Outbound; msa04b; Mon, 19 Sep 2011 10:40:05 +0900 Cc: freebsd-current@FreeBSD.org Subject: bsdgrep-20110912: -F/fgrep enbug 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: Mon, 19 Sep 2011 01:40:07 -0000 Hi, I found another issue, this time in bsdgrep-20110912 in port. == #! /bin/sh echo 1 echo 90123456789.|grep -F 0123456789. echo 2 echo 90123456789.|grep 0123456789. echo 3 echo 0123456789.|grep -F 0123456789. echo 4 echo 90123456789.|grep -F 0123456789 echo 5 echo 90123456789x|grep -F 0123456789x == result: 1 2 90123456789. 3 0123456789. 4 90123456789. 5 90123456789x == (1) this should match but does not. (2) without -F it matches. (3) trim leading 1 byte from input string it matches. (4) trim last period from query string it matches. (5) replace period with another character (no matter what it is) it matches. bsdgrep in -CURRENT and GNU grep match all cases. -- kuro