From 64cbbab181749f85f3bcdb8576c5d530c453db84 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 17 Oct 2016 23:52:51 -0500 Subject: A few more sed tests. --- tests/sed.test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/sed.test') diff --git a/tests/sed.test b/tests/sed.test index f48b73e6..75d6ec5d 100755 --- a/tests/sed.test +++ b/tests/sed.test @@ -59,6 +59,9 @@ testing 'regex address overlap' 'sed -n /on/,/off/p' "on\nzap\noffon\n" "" \ 'on\nzap\noffon\nping\noff\n' testing 'getdelim with nested [:blah:]' 'sed -n "sa\a[a[:space:]bc]*aXXagp"' \ "ABXXCDXXEFXXGHXXIXX" "" "ABaaCDa EFaa aGHa a Ia " +testing '[ in [[]' "sed 's@[[]@X@g'" "X" "" "[" +testing '[[] with ] as delimiter' "sed 's][[]]X]g'" "X" "" "[" +testing '[[] with [ as delimiter' "sed 's[\[\[][X['" "X" "" "[" # gGhHlnNpPqrstwxy:= # s///#comment -- cgit v1.2.3