From 4ebdfcd2e1dc6e584198621da64c0c56c9c12e72 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Thu, 5 Apr 2007 17:12:01 +0000 Subject: [PATCH] Add an important detail to paragraph 12: the range is reset only if its second address is a line number. --- usr.bin/sed/POSIX | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/sed/POSIX b/usr.bin/sed/POSIX index 9bc6678a36f..ff789d51901 100644 --- a/usr.bin/sed/POSIX +++ b/usr.bin/sed/POSIX @@ -124,8 +124,9 @@ All uses of "POSIX" refer to section 4.55, Draft 12 of POSIX 1003.2. However, the current practice adopted by this implementation, as well as by those from GNU and SUN, is as follows: The text from the 'c' command still isn't output because the second address - isn't actually matched; but the range is reset after all. In the - above example, only the first line of the input will be deleted. + isn't actually matched; but the range is reset after all if its + second address is a line number. In the above example, only the + first line of the input will be deleted. 13. Historical implementations allow an output suppressing #n at the beginning of -e arguments as well as in a script file. POSIX