sed: in '/regexp/cmd1;//cmd2', cmd2 should use the same regexp as cmd1
function old new delta get_address 165 211 +46 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -387,6 +387,12 @@ testing "sed 's///w FILE'" \
|
||||
"" \
|
||||
"123\nqwe\nasd\n"
|
||||
|
||||
testing "sed uses previous regexp" \
|
||||
"sed '/w/p;//q'" \
|
||||
"q\nw\nw\n" \
|
||||
"" \
|
||||
"q\nw\ne\nr\n"
|
||||
|
||||
# testing "description" "commands" "result" "infile" "stdin"
|
||||
|
||||
exit $FAILCOUNT
|
||||
|
Reference in New Issue
Block a user