sed: deal with peculiar behavior of '2d;2,1p' in GNU sed
function old new delta process_files 2173 2120 -53 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -220,4 +220,9 @@ testing "sed d does not break n,regex matching #2" \
|
||||
"second2\nthird2\n" "" \
|
||||
"first\nsecond\nthird\nfourth\n""first2\nsecond2\nthird2\nfourth2\n"
|
||||
|
||||
testing "sed 2d;2,1p (gnu compat)" \
|
||||
"sed -n '2d;2,1p'" \
|
||||
"third\n" "" \
|
||||
"first\nsecond\nthird\nfourth\n"
|
||||
|
||||
exit $FAILCOUNT
|
||||
|
Reference in New Issue
Block a user