Defect Report concerning: IEEE Std. 1003.2-1992, ISO/IEC 9945-2:1993 - Shell & Utilities
Clause: 4.55.7.2
PASC Interpretation Ref: pasc-1003.2-34
Topic: Sed REs


This is an unapproved interpretation of PASC 1003.2-1992, ISO/IEC 9945-2:1993 - Shell & Utilities.

Use of the information contained in this unapproved document is at your own risk.

Last update: 20 April,2001


								1003.2-92  #34

 _____________________________________________________________________________


	Interpretation Number:	XXXX
	Topic:			Sed REs
	Relevant Sections:	4.55.7.2
	Classification:		Unaddressed Issue.


Interpretation Request: (Defect Report)
-----------------------

Reference: Page 409, Section 4.55.7.2, "sed REs".

Was it the intent of the standard to ignore "empty RE's"?
Historic implementations of sed used the empty RE (//) to
match the last RE used.

(Keith Bostic)


IEEE Interpretation for 1003.2-1992 
-----------------------------------
        The meaning of an empty RE is not defined by the standard.

        The standard does not speak to the meaning of a null BRE for
        SED.  The standard is unclear on this issue, and no conformance
        distinction can be made between alternative implementations
        based on this.  This is being referred to the sponsor.

     

Rationale for Interpretation:
-----------------------------
None.


Editorial note for future revision of standard (not part of this interpretation)
-------------------------------------------------------------------------------
A proposed change to the section 4.55.7.2 sed REs is
as follows: add paragraph (3) :

(3) If an RE is empty (i.e., no pattern is specified) sed shall
behave as if the last RE used in the last command applied (either
as an address or as part of a substitute command) was specified.

NOTE: There is no certainty that these comments will apply to any
revision of IEEE Std 1003.2-1992.
 _____________________________________________________________________________