diff options
-rwxr-xr-x | tests/sed.test | 3 |
1 files changed, 3 insertions, 0 deletions
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 |