Skip to content

Commit da96d58

Browse files
authored
Release notes for v0.112.2 (#2154)
1 parent 7f5faa6 commit da96d58

1 file changed

Lines changed: 95 additions & 0 deletions

File tree

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
title: Nushell 0.112.2
3+
author: The Nu Authors
4+
author_site: https://www.nushell.sh/blog
5+
author_image: https://www.nushell.sh/blog/images/nu_logo.png
6+
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.
7+
---
8+
9+
# Nushell 0.112.2
10+
11+
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.
12+
13+
# Where to get it
14+
15+
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`.
16+
17+
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.
18+
19+
# Table of contents
20+
21+
<ReleaseToc/>
22+
23+
# Changes <JumpToc/>
24+
25+
## Bug fixes <JumpToc/>
26+
27+
### Fixed regressions in quoting for string arguments in Nu script calls <JumpToc/> <PrBy :pr="18030" user="fdncred" />
28+
29+
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.
30+
31+
Using these test scripts:
32+
33+
```nushell title="test.nu"
34+
def --wrapped main [...args: string] {
35+
print $args
36+
print ($args.1 | str substring 0..0)
37+
}
38+
```
39+
40+
```nushell highlight-lines=false title="test2.nu"
41+
def main [...args: string] {
42+
print ...($args)
43+
}
44+
```
45+
46+
Quoted arguments now behave correctly:
47+
48+
```ansi :no-line-numbers
49+
> nu test2.nu a b "c\nd"
50+
a
51+
b
52+
c
53+
d
54+
> nu test.nu arg1 "arg 2"
55+
╭───┬───────╮
56+
│ 0 │ arg1 │
57+
│ 1 │ arg 2 │
58+
╰───┴───────╯
59+
a
60+
> nu --no-config-file test2.nu a b "c\nd"
61+
a
62+
b
63+
c
64+
d
65+
> nu --no-config-file test.nu arg1 "arg 2"
66+
╭───┬───────╮
67+
│ 0 │ arg1 │
68+
│ 1 │ arg 2 │
69+
╰───┴───────╯
70+
```
71+
72+
### Fixed regressions for `input list` <JumpToc/> <PrBy :pr="18039" user="fdncred" />
73+
74+
This release fixes several regressions introduced in the previous release affecting `input list` behavior:
75+
76+
- Restored correct Tab and Backtab handling when using `--fuzzy`.
77+
- Aligned behavior across `--fuzzy`, `--multi`, and combined `--fuzzy --multi`.
78+
- Fixed cursor movement issues when `--multi` is enabled.
79+
- Resolved Backtab wrap-around behavior.
80+
- Corrected arrow key cursor navigation.
81+
- Fixed an issue where `--fuzzy` did not search all items when input is streamed.
82+
83+
### Other fixes
84+
85+
- 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))
86+
87+
# Full changelog <JumpToc/>
88+
89+
| author | title | link |
90+
| ---------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------- |
91+
| [@Juhan280](https://github.com/Juhan280) | fix: properly quote special characters in script arguments | [#18027](https://github.com/nushell/nushell/pull/18027) |
92+
| [@cptpiepmatz](https://github.com/cptpiepmatz) | Post release bump to 0.112.2 | [#18017](https://github.com/nushell/nushell/pull/18017) |
93+
| [@cptpiepmatz](https://github.com/cptpiepmatz) | bump rustls-webpki | [#18053](https://github.com/nushell/nushell/pull/18053) |
94+
| [@fdncred](https://github.com/fdncred) | Fix quoting regression in argument handling for evaluate_file; add tests | [#18030](https://github.com/nushell/nushell/pull/18030) |
95+
| [@fdncred](https://github.com/fdncred) | fix input list regressions with keystrokes and fuzzy | [#18039](https://github.com/nushell/nushell/pull/18039) |

0 commit comments

Comments
 (0)