|
From: | Gary Poppitz |
Subject: | sed bug(maybe) |
Date: | Fri, 23 Feb 2001 16:10:51 -0800 |
here is a sample of what I believe to be a bug in sed. v 3.0.2 from RH6.2 . It looks like it is matching the input lines, and then for EACH matched line is outputting the replacement block. `c\' `text' Delete the lines matching the address or address-range, and output the lines of text which follow this command (each but the last ending with a \, which will be removed from the output) in place of the last line (or in place of each line, if no addresses were specified). A new cycle is started after this command is done, since the pattern space will have been deleted. Im not sure what "(or in place of each line, if no addresses were specified)" means but I believe that means no range was provided which isnt the case here.
testinput
Description: application/applefile
testinput
Description: Binary data
testsh
Description: application/applefile
testsh
Description: Binary data
testoutput
Description: application/applefile
testoutput
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |