From tim@robbins.dropbear.id.au  Wed Jul 31 19:27:06 2002
Return-Path: <tim@robbins.dropbear.id.au>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1F07737B400
	for <bug-followup@FreeBSD.ORG>; Wed, 31 Jul 2002 19:27:06 -0700 (PDT)
Received: from dilbert.robbins.dropbear.id.au (220.b.007.mel.iprimus.net.au [210.50.81.220])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A551543E3B
	for <bug-followup@FreeBSD.ORG>; Wed, 31 Jul 2002 19:27:02 -0700 (PDT)
	(envelope-from tim@robbins.dropbear.id.au)
Received: from dilbert.robbins.dropbear.id.au (l36l0pc3htooxkti@localhost [127.0.0.1])
	by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3) with ESMTP id g712Qvko004832;
	Thu, 1 Aug 2002 12:26:58 +1000 (EST)
	(envelope-from tim@dilbert.robbins.dropbear.id.au)
Received: (from tim@localhost)
	by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3/Submit) id g712QsDM004831;
	Thu, 1 Aug 2002 12:26:55 +1000 (EST)
Message-Id: <20020801122653.A4231@dilbert.robbins.dropbear.id.au>
Date: Thu, 1 Aug 2002 12:26:53 +1000
From: Tim Robbins <tjr@FreeBSD.ORG>
To: Cyrille Lefevre <cyrille.lefevre@laposte.net>
Cc: bug-followup@FreeBSD.ORG
In-Reply-To: <200207301240.g6UCeXLo040004@gits.gits.dyndns.org>; from cyrille.lefevre@laposte.net on Tue, Jul 30, 2002 at 02:40:33PM +0200
Subject: Re: new sed -c option to allow ; as a separator for b, t and : functions
References: <200207301240.g6UCeXLo040004@gits.gits.dyndns.org>

>Number:         41217
>Category:       bin
>Synopsis:       Re: new sed -c option to allow ; as a separator for b, t and : functions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 31 19:30:01 PDT 2002
>Closed-Date:    Tue Aug 20 14:05:28 PDT 2002
>Last-Modified:  Tue Aug 20 14:05:28 PDT 2002
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 On Tue, Jul 30, 2002 at 02:40:33PM +0200, Cyrille Lefevre wrote:
 
 > >Description:
 > 	the current sed implementation can't handle the ; separator for
 > 	b, t and : functions. this patch set add a new -c (compat) option
 > 	to allow sed to parse such constructions. maybe -C is better then -c ?
 
 If I understand SUSv3 correctly, file names or label names can contain
 semicolons:
 
 32406	Command verbs other than {, a, b, c, i, r, t, w, :, and # can be
 	followed by a semicolon, optional
 32407	<blank>s, and another command verb. However, when the s command verb
 	is used with the w
 32408	flag, following it with another command in this manner produces
 	undefined results.
 
 GNU sed, which by default accepts semicolons after (at least) the : and t
 commands does not strictly conform. I'd rather that our sed was by default
 as close as possible to what the standard requires, so we probably do need
 a command line option like you suggested.
 
 I think -g would be a better choice (similar to m4's -g option) to
 emphasise the fact that accepting semicolons after these commands is a GNU
 extension, and possibly adding more GNU compatibility features if
 they're needed/useful. BSD, 7th Edition and System V all behave the same
 way, and treat semicolons as part of the label/filename.
 
 
 Tim
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Tue Aug 20 14:04:23 PDT 2002 
State-Changed-Why:  
Followup to bin/41159 misfiled as a new PR. 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Tue Aug 20 14:04:23 PDT 2002 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=41217 
>Unformatted:
