2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-02-13 12:43:43 +00:00
fish-shell/fish-rust
Henrik Hørlück Berg 20be990fd9 Port builtins/string to Rust
- Add test to verify piped string replace exit code

Ensure fields parsing error messages are the same.

Note: C++ relied upon the value of the parsed value even when `errno` was set,
that is defined behaviour we should not rely on, and cannot easilt be replicated from Rust.
Therefore the Rust version will change the following error behaviour from:

```shell
> string split --fields=a "" abc
string split: Invalid fields value 'a'
> string split --fields=1a "" abc
string split: 1a: invalid integer
```

To:

```shell
> string split --fields=a "" abc
string split: a: invalid integer
> string split --fields=1a "" abc
string split: 1a: invalid integer
```
2023-07-27 22:00:03 -07:00
..
src Port builtins/string to Rust 2023-07-27 22:00:03 -07:00
widestring-suffix Update dependencies for asan to work 2023-06-29 20:02:43 -05:00
build.rs Adopt the new function store and rewrite builtin_function 2023-07-23 17:18:36 -07:00
Cargo.lock Use a faster, deterministic RNG in the string escape tests 2023-07-04 13:27:53 -07:00
Cargo.toml Use a faster, deterministic RNG in the string escape tests 2023-07-04 13:27:53 -07:00