From 05069bdf6a419cb69fbef91f552a772a7b0799c3 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 18 Oct 2022 01:00:32 -0500 Subject: [PATCH] Couple more sed tests. --- tests/sed.test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/sed.test b/tests/sed.test index 37e7b41f..fdd59404 100755 --- a/tests/sed.test +++ b/tests/sed.test @@ -182,6 +182,8 @@ testcmd '-z D' "-z 'N;D'" 'two' '' 'one\0two' testcmd '-z G' "-z 'h;G'" 'one\0one' '' 'one' testcmd '-z H' "-z 'H;g'" '\0one' '' 'one' toyonly testcmd '-z x NOEOL' '-z ax' 'abc\0x\0def\0x\0' '' 'abc\0def' +testcmd 's after NUL' 's/t/x/' 'one\0xwo' '' 'one\0two' +testcmd '^ not trigger after NUL' 's/^t/x/' 'one\0two' '' 'one\0two' # toybox handling of empty capturing groups broke minjail. Check that we # correctly replace an empty capturing group with the empty string: