From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 11 23:50:16 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 275E0106564A for ; Wed, 11 Apr 2012 23:50:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 10FE08FC18 for ; Wed, 11 Apr 2012 23:50:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3BNoFMo024661 for ; Wed, 11 Apr 2012 23:50:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3BNoFiE024660; Wed, 11 Apr 2012 23:50:15 GMT (envelope-from gnats) Date: Wed, 11 Apr 2012 23:50:15 GMT Message-Id: <201204112350.q3BNoFiE024660@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jim Pryor Cc: Subject: Re: bin/166861: bsdgrep -E and sed handle invalid {} constructs strangely X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jim Pryor List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2012 23:50:16 -0000 The following reply was made to PR bin/166861; it has been noted by GNATS. From: Jim Pryor To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/166861: bsdgrep -E and sed handle invalid {} constructs strangely Date: Wed, 11 Apr 2012 19:45:57 -0400 (5) FreeBSD sed without -r, as well as the other sed implementations, reject unmatched \( and unmatched \) both as invalid patterns. So too do all these grep implementations without -E. Similarly, gnu sed with -r rejects unmatched ( and unmatched ) both as invalid patterns. And so too do all these egrep implementations. Like everyone else, FreeBSD sed with -r rejects unmatched ( as invalid. But it diverges in treating unmatched ) as literal. -- dubiousjim@gmail.com