From owner-freebsd-bugs Tue Feb 10 16:50:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA19819 for freebsd-bugs-outgoing; Tue, 10 Feb 1998 16:50:03 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA19808; Tue, 10 Feb 1998 16:50:01 -0800 (PST) (envelope-from gnats) Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA19483 for ; Tue, 10 Feb 1998 16:46:40 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.8.8/8.8.8) id BAA21304; Wed, 11 Feb 1998 01:46:29 +0100 (CET) (envelope-from olli) Message-Id: <199802110046.BAA21304@dorifer.heim3.tu-clausthal.de> Date: Wed, 11 Feb 1998 01:46:29 +0100 (CET) From: Oliver Fromme Reply-To: oliver.fromme@heim3.tu-clausthal.de To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: docs/5708: Small bug in re_format(7) manual page. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5708 >Category: docs >Synopsis: Small bug in re_format(7) manual page. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 10 16:50:00 PST 1998 >Last-Modified: >Originator: Oliver Fromme >Organization: Administration Heim 3 (Technical University of Clausthal) >Release: FreeBSD 2.2-971223-SNAP i386 >Environment: `uname -a`: FreeBSD dorifer.heim3.tu-clausthal.de 2.2-971223-SNAP FreeBSD 2.2-971223-SNAP #0: Sun Feb 1 16:24:13 CET 1998 olli@dorifer.heim3.tu-clausthal.de:/usr/src/sys/compile/DORIFER i386 >Description: According to the re_format() manual page: Obsolete (``basic'') regular expressions differ in several respects. `|', `+', and `?' are ordinary characters and there is no equivalent for their functionality. This is not completely correct. `x+' is equivalent to `xx*' or `x\{1,\}', and `x?' is equivalent to `x\{0,1\}'. >How-To-Repeat: Enter "man 7 re_format". >Fix: --- re_format.7.orig Wed Feb 11 01:32:32 1998 +++ re_format.7 Wed Feb 11 01:41:15 1998 @@ -222,8 +222,12 @@ POSIX-compliant. .PP Obsolete (``basic'') regular expressions differ in several respects. -`|', `+', and `?' are ordinary characters and there is no equivalent -for their functionality. +`|' is an ordinary character and there is no equivalent +for its functionality. +`+' and `?' are ordinary characters, and their functionality +can be expressed using bounds (`\{1,\}' or `\{0,1\}', +respectively). +Also note that `x+' in modern REs is equivalent to `xx*'. The delimiters for bounds are `\e{' and `\e}', with `{' and `}' by themselves ordinary characters. The parentheses for nested subexpressions are `\e(' and `\e)', >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message