nushell/crates/nu-cmd-base/src
Wind ac4125f8ed
fix range semantic in detect_columns, str substring, str index-of (#12894)
# Description
Fixes: https://github.com/nushell/nushell/issues/7761

It's still unsure if we want to change the `range semantic` itself, but
it's good to keep range semantic consistent between nushell commands.

# User-Facing Changes
### Before
```nushell
❯ "abc" | str substring 1..=2
b
```
### After
```nushell
❯ "abc" | str substring 1..=2
bc
```

# Tests + Formatting
Adjust tests to fit new behavior
2024-05-22 20:00:58 +03:00
..
formats Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00
hook.rs Remove std::env::set_current_dir() call from EngineState::merge_env() (#12922) 2024-05-22 19:58:27 +03:00
input_handler.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
lib.rs Unify glob behavior on open, rm, cp-old, mv, umv, cp and du commands (#11621) 2024-01-26 21:57:35 +08:00
util.rs fix range semantic in detect_columns, str substring, str index-of (#12894) 2024-05-22 20:00:58 +03:00