fix path --null-out

Regression from 7bc4c9674b.

Appending `"\0"` to an std::string does nothing.

I blame C++.
This commit is contained in:
Fabian Boehm
2022-10-05 17:15:56 +02:00
parent 897d95a654
commit dcf52dbba5
2 changed files with 11 additions and 1 deletions

View File

@@ -222,3 +222,11 @@ set -l epochtime (path mtime epoch)
# Allow for timezone shenanigans
test $epochtime -gt 0 -a $epochtime -lt 180000
or echo Oops not mtime
path basename -Z foo bar baz | path sort
# CHECK: bar
# CHECK: baz
# CHECK: foo
path basename --null-out bar baz | string escape
# CHECK: bar\x00baz\x00