mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-17 08:01:14 -03:00
fix path --null-out
Regression from 7bc4c9674b.
Appending `"\0"` to an std::string does nothing.
I blame C++.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user