mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
11c8d9684e
* Make NULs work for builtins This switches from passing a c-string to output_stream_t::append to passing a proper string. That means a builtin that prints a NUL no longer crashes with "thread '' panicked at 'String contained intermediate NUL character: ". Instead, it will actually handle the NUL, even as an argument. That means something like `echo foo\x00bar` will now actually print a NUL instead of truncating after the `foo` because we passed c-strings around everywhere. The former is *necessary* for e.g. `string`, the latter is a change that on the whole makes dealing with NULs easier, but it is a behavioral change. To restore the c-string behavior we would have to truncate arguments at NUL. See #9739. * Use AsRef instead of trait bound |
||
---|---|---|
.. | ||
src | ||
widestring-suffix | ||
build.rs | ||
Cargo.lock | ||
Cargo.toml |