diff --git a/tests/checks/nuls.fish b/tests/checks/nuls.fish new file mode 100644 index 000000000..76a0ded71 --- /dev/null +++ b/tests/checks/nuls.fish @@ -0,0 +1,7 @@ +#RUN: %fish %s +# NUL-handling + +echo foo\x00bar | string escape +# CHECK: foo\x00bar +echo foo\\x00bar | string escape +# CHECK: foo\\x00bar diff --git a/tests/checks/string.fish b/tests/checks/string.fish index 0180d34f2..52dcec924 100644 --- a/tests/checks/string.fish +++ b/tests/checks/string.fish @@ -955,8 +955,3 @@ string shorten -m0 foo bar asodjsaoidj # CHECK: foo # CHECK: bar # CHECK: asodjsaoidj - -echo foo\x00bar | string escape -# CHECK: foo\x00bar -echo foo\\x00bar | string escape -# CHECK: foo\\x00bar