diff --git a/blog/2026-04-15-nushell_v0_112_2.md b/blog/2026-04-15-nushell_v0_112_2.md new file mode 100644 index 00000000000..1b60b874790 --- /dev/null +++ b/blog/2026-04-15-nushell_v0_112_2.md @@ -0,0 +1,95 @@ +--- +title: Nushell 0.112.2 +author: The Nu Authors +author_site: https://www.nushell.sh/blog +author_image: https://www.nushell.sh/blog/images/nu_logo.png +excerpt: Today, we're releasing version 0.112.2 of Nu. This release adds fixes for regressions in script argument quoting and `input list`, improving handling for quoted strings, special characters, fuzzy selection, and multi-select navigation. +--- + +# Nushell 0.112.2 + +Today, we're releasing version 0.112.2 of Nu. This release adds fixes for regressions in script argument quoting and `input list`, improving handling for quoted strings, special characters, fuzzy selection, and multi-select navigation. + +# Where to get it + +Nu 0.112.2 is available as [pre-built binaries](https://github.com/nushell/nushell/releases/tag/0.112.2) or from [crates.io](https://crates.io/crates/nu). If you have Rust installed you can install it using `cargo install nu`. + +As part of this release, we also publish a set of optional [plugins](https://www.nushell.sh/book/plugins.html) you can install and use with Nushell. + +# Table of contents + + + +# Changes + +## Bug fixes + +### Fixed regressions in quoting for string arguments in Nu script calls + +This release fixes incorrect quoting behavior when passing string arguments to Nu scripts. Quoted strings, including those with spaces and escape sequences, are now handled consistently. + +Using these test scripts: + +```nushell title="test.nu" +def --wrapped main [...args: string] { + print $args + print ($args.1 | str substring 0..0) +} +``` + +```nushell highlight-lines=false title="test2.nu" +def main [...args: string] { + print ...($args) +} +``` + +Quoted arguments now behave correctly: + +```ansi :no-line-numbers +> nu test2.nu a b "c\nd" +a +b +c +d +> nu test.nu arg1 "arg 2" +╭───┬───────╮ +│ 0 │ arg1 │ +│ 1 │ arg 2 │ +╰───┴───────╯ +a +> nu --no-config-file test2.nu a b "c\nd" +a +b +c +d +> nu --no-config-file test.nu arg1 "arg 2" +╭───┬───────╮ +│ 0 │ arg1 │ +│ 1 │ arg 2 │ +╰───┴───────╯ +``` + +### Fixed regressions for `input list` + +This release fixes several regressions introduced in the previous release affecting `input list` behavior: + +- Restored correct Tab and Backtab handling when using `--fuzzy`. +- Aligned behavior across `--fuzzy`, `--multi`, and combined `--fuzzy --multi`. +- Fixed cursor movement issues when `--multi` is enabled. +- Resolved Backtab wrap-around behavior. +- Corrected arrow key cursor navigation. +- Fixed an issue where `--fuzzy` did not search all items when input is streamed. + +### Other fixes + +- When nu is run from a script, empty strings and strings containing `[`, `{`, or `}` in the arguments are properly quoted. ([#18027](https://github.com/nushell/nushell/pull/18027)) + +# Full changelog + +| author | title | link | +| ---------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------- | +| [@Juhan280](https://github.com/Juhan280) | fix: properly quote special characters in script arguments | [#18027](https://github.com/nushell/nushell/pull/18027) | +| [@cptpiepmatz](https://github.com/cptpiepmatz) | Post release bump to 0.112.2 | [#18017](https://github.com/nushell/nushell/pull/18017) | +| [@cptpiepmatz](https://github.com/cptpiepmatz) | bump rustls-webpki | [#18053](https://github.com/nushell/nushell/pull/18053) | +| [@fdncred](https://github.com/fdncred) | Fix quoting regression in argument handling for evaluate_file; add tests | [#18030](https://github.com/nushell/nushell/pull/18030) | +| [@fdncred](https://github.com/fdncred) | fix input list regressions with keystrokes and fuzzy | [#18039](https://github.com/nushell/nushell/pull/18039) |