mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 07:31:15 +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 |
||
---|---|---|
.. | ||
checks | ||
pexpects | ||
test_functions | ||
.gitignore | ||
history_sample_bash | ||
history_sample_corrupt1 | ||
history_sample_fish_1_x | ||
history_sample_fish_2_0 | ||
interactive.config | ||
interactive.fish | ||
test_driver.sh | ||
test_env.sh | ||
test_util.fish | ||
test.fish |