Deleted Added
full compact
POSIX (168386) POSIX (168389)
1# @(#)POSIX 8.1 (Berkeley) 6/6/93
1# @(#)POSIX 8.1 (Berkeley) 6/6/93
2# $FreeBSD: head/usr.bin/sed/POSIX 168386 2007-04-05 13:31:17Z yar $
2# $FreeBSD: head/usr.bin/sed/POSIX 168389 2007-04-05 17:12:01Z yar $
3
4Comments on the IEEE P1003.2 Draft 12
5 Part 2: Shell and Utilities
6 Section 4.55: sed - Stream editor
7
8Diomidis Spinellis <dds@doc.ic.ac.uk>
9Keith Bostic <bostic@cs.berkeley.edu>
10

--- 108 unchanged lines hidden (view full) ---

119 text
120
121 Historic implementations did not output the text in the above
122 example. Therefore it was believed that a range whose second
123 address was never matched extended to the end of the input.
124 However, the current practice adopted by this implementation,
125 as well as by those from GNU and SUN, is as follows: The text
126 from the 'c' command still isn't output because the second address
3
4Comments on the IEEE P1003.2 Draft 12
5 Part 2: Shell and Utilities
6 Section 4.55: sed - Stream editor
7
8Diomidis Spinellis <dds@doc.ic.ac.uk>
9Keith Bostic <bostic@cs.berkeley.edu>
10

--- 108 unchanged lines hidden (view full) ---

119 text
120
121 Historic implementations did not output the text in the above
122 example. Therefore it was believed that a range whose second
123 address was never matched extended to the end of the input.
124 However, the current practice adopted by this implementation,
125 as well as by those from GNU and SUN, is as follows: The text
126 from the 'c' command still isn't output because the second address
127 isn't actually matched; but the range is reset after all. In the
128 above example, only the first line of the input will be deleted.
127 isn't actually matched; but the range is reset after all if its
128 second address is a line number. In the above example, only the
129 first line of the input will be deleted.
129
13013. Historical implementations allow an output suppressing #n at the
131 beginning of -e arguments as well as in a script file. POSIX
132 does not specify this. This implementation follows historical
133 practice.
134
13514. POSIX does not explicitly specify how sed behaves if no script is
136 specified. Since the sed Synopsis permits this form of the command,

--- 67 unchanged lines hidden ---
130
13113. Historical implementations allow an output suppressing #n at the
132 beginning of -e arguments as well as in a script file. POSIX
133 does not specify this. This implementation follows historical
134 practice.
135
13614. POSIX does not explicitly specify how sed behaves if no script is
137 specified. Since the sed Synopsis permits this form of the command,

--- 67 unchanged lines hidden ---