Skip to content

[pull] main from nushell:main - #1

Open
pull[bot] wants to merge 1620 commits into
gaetschwartz:mainfrom
nushell:main
Open

pull[bot] wants to merge 1620 commits into
gaetschwartz:mainfrom
nushell:main

Conversation

@pull

@pull pull Bot commented Jul 4, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull Bot locked and limited conversation to collaborators Jul 4, 2026
@pull pull Bot added ⤵️ pull merge-conflict Resolve conflicts manually labels Jul 4, 2026
ymcx and others added 27 commits October 18, 2026 16:45
## Description

`to xml` allows setting a negative value for the `indent` argument, even
though none of the other `to` commands with similar arguments allow
doing so. Giving a value of -1 makes it warp into usize::MAX, which
makes Nushell freeze regardless of the input.

## User-facing changes (Release notes)

`to xml` now disallows setting a negative indentation amount.

## Additional notes

Closes #19291
## Description

`du` walked every path and added each file's size independently, so a
file with N hard links was counted N times and both size columns
over-reported.

The walk now tracks the identities of files it has already counted and
skips the repeats. The set holds `uucore::fs::FileInformation`
(device+inode on Unix, volume serial+file index on Windows) instead of a
Unix-only `(dev, ino)` pair, so the dedup applies on Linux, macOS and
Windows; the gate is `not(wasm32)`. One set covers the whole `du`
invocation following the POSIX/GNU rule: a file counts once even across
different path operands, so `du` and `du d1 d2` agree (first occurrence
wins). Only files with more than one link enter the set; single-link
files never touch it. `DirBuilder` stays settings-only — the set is
threaded through as `&mut` rather than living in a cloned struct. `ls
--du` uses the new signature; within each listed directory a hard-linked
file now counts once, matching `du`.

Adds regression tests: a file with multiple hard links contributes its
size exactly once, including when the links sit under different path
operands.

## User-facing changes (Release notes)

- Fixed `du` over-reporting sizes for hard-linked files: a file with
multiple hard links is now counted once instead of once per link, on all
platforms (Linux, macOS, Windows).
- `du --long` lists the first-seen link only, matching GNU `du -a`.
- `ls --du` now counts a hard-linked file once inside each listed
directory, like `du` does.
- First link wins: when the same file is reachable through multiple hard
links, only the first occurrence is counted and listed — e.g. `du c b a`
on three links to one file shows a single row for `c`. This matches
POSIX/BSD/GNU `du`, but scripts that expect one row per operand will see
fewer rows.

## Additional notes

- Fixes #19019
## Description
`last` crashes on byte streams when the count is too large to allocate.
On current main:

> random binary 16b | last 9223372036854775807 | length
panicked: capacity overflow

It comes from `VecDeque::with_capacity(rows + TAKE as usize)`, where
`rows` is the number the user typed. The loop already drains the buffer
down to `rows` after every read, so the buffer only needs to grow with
the data that is actually read.

The buffer now starts empty, so memory use follows the data and not the
argument. This is the same problem as #19286 (`chunks`) and #19288
(`window`).

I added tests for a huge count on a byte stream and on binary input,
comparing the values. I ran the `last` tests locally and they pass. I
did not run the full workspace suite.

AI assistance: I used Claude to help find the issue and draft the
change. I reviewed and tested it myself.

## User-facing changes (Release notes)
Fixed a crash when `last` is given a count too large to allocate, such
as 9223372036854775807, on byte stream input.

## Additional notes
n/a

Signed-off-by: G. Manoj Kumar <[email protected]>
…howing an internal error (#19280)

## Description
Running a script whose shebang interpreter doesn't exist gave an
internal error that pointed at a Rust source location:

```
Error: nu::shell::io::not_found

  × Not found
  ╰─▶   × Could not spawn foreground child: No such file or directory (os error 2)

   ╭────
 1 │ crates/nu-command/src/system/run_external.rs:323:17
   · ─────────────────────────┬─────────────────────────
   ·                          ╰── Not found
   ╰────
```

By the time the child is spawned, `which` has already found the
executable, so on Unix a "not found" error from spawning means something
the OS needs to start it is missing. Nushell now reads the first line of
the file: if it starts with `#!` and that interpreter doesn't exist, the
help names it, like bash, zsh and fish do. Otherwise it says a file the
program needs (such as a shared library or its program loader) wasn't
found, which is the `ldd` case in the issue. The help includes the
resolved path, so it's clear which file was run:

```
Error: nu::shell::external_command

  × External command failed
   ╭─[entry #1:1:1]
 1 │ ./script.sh
   · ─────┬─────
   ·      ╰── `./script.sh` exists but could not be started
   ╰────
  help: `/path/to/script.sh` starts with `#!/nonexistent/interpreter`, but `/nonexistent/interpreter` was not found (No such file or directory (os error 2))
```

This hint is Unix-only and only used when the file still exists; on
Windows, or when the file was removed after `which` found it, you get
the normal not-found error with the path. Other spawn errors (permission
denied, argument list too long, exec format error) are now reported
against the command and its path instead of a Rust source line.

Tests in `crates/nu-command/tests/commands/run_external.rs` (Unix only,
for the bare, `^` and `run-external` forms):
- `missing_shebang_interpreter_error`
- `non_executable_shebang_interpreter_error` (a `#!` pointing at a file
that isn't executable, which now gives a permission error instead of the
internal one)

Both retry once if the run fails with `ExecutableFileBusy`, to avoid the
Linux "Text file busy" flake.

## User-facing changes (Release notes)
- Running a script whose shebang interpreter is missing now names the
interpreter, and a program missing a file it needs (such as a shared
library) says so, instead of showing an internal "Could not spawn
foreground child" error with a Rust source location. Other errors from
starting an external command point at the command and its path.

## Additional notes
Fixes #15970

Tests + formatting:
- `cargo fmt --all -- --check`
- `cargo clippy -p nu-config -p nu-cmd-lang -p nu-command -p nu-cli -p
nu-explore --all-targets -- -D warnings -D clippy::unwrap_used`
- `cargo test -p nu-command --test tests -- commands::run_external`
…ript's arguments (#19282)

## Description
`nu script.nu` runs the script's `main` by evaluating `main <args>`, so
an error about the arguments showed `main` in the source snippet, even
though the usage line already uses the script name:

```
Error: nu::parser::missing_positional

  × Missing required positional argument.
   ╭─[<commandline>:1:5]
 1 │ main
   ·     ▲
   ·     ╰── missing foo
   ╰────
  help: Usage: script.nu <foo> . Use `--help` for more information.
```

`evaluate_file` already adds the script name to the overlay as another
name for `main` (and `script.nu foo` for `main foo`), so the call can
use it. This now builds the command line as `script.nu <args>` when that
parses as a call to the script's renamed `main` (checked with a single
probe parse), and falls back to `main <args>` otherwise. The snippet
then shows `script.nu`:

```
   ╭─[<commandline>:1:10]
 1 │ script.nu
   ·          ▲
   ·          ╰── missing foo
   ╰────
  help: Usage: script.nu <foo> . Use `--help` for more information.
```

The script name is only used when it parses as a command. Scripts named
after a parser keyword (`for`, `source`, `use`, `module`, `alias`, ...)
always call `main` directly, and names that parse as something else,
such as `10kb`, `true`, `it's.nu` or `a #b.nu`, still show `main`. Names
with a space (`my script.nu`) use the script name. Scripts without a
`main` aren't affected.

Tests added in `tests/shell/mod.rs`:
- `main_script_missing_argument_uses_script_name`
- `main_script_subcommand_missing_argument_uses_script_name`
- `main_script_with_space_in_name_uses_script_name`
- `main_script_named_like_a_parser_keyword_still_runs`
- `main_script_named_like_a_value_still_runs` (checks the fallback to
`main`)
- `script_without_main_is_unaffected`

## User-facing changes (Release notes)
- Errors about the arguments passed to a script's `main` (such as a
missing positional argument) now show the script name instead of `main`,
when the script name parses as a command. Other names (for example
`10kb` or `it's.nu`) still show `main`.

## Additional notes
Fixes #10191

Tests + formatting:
- `cargo fmt --all -- --check`
- `cargo clippy -p nu-config -p nu-cmd-lang -p nu-command -p nu-cli -p
nu-explore --all-targets -- -D warnings -D clippy::unwrap_used`
- `cargo clippy -p nu -p nu-cli --all-targets -- -D warnings -D
clippy::unwrap_used`
- `cargo test --test tests -- shell::`
- `cargo test -p nu-cli --lib eval_file`

The script name is only used when the call resolves to main, so names
like 10kb, it's.nu or main;… still show main.
## Summary

`get` now takes its cell paths as a single `...rest` parameter, so a
list of paths can be spread into it: `get ...$paths`. Before this, `get`
required a first cell path followed by a rest, and there was no way to
pass a dynamically built list of paths.

## Behavior

- `get` with no paths returns its input unchanged. With an empty
pipeline it reports `Pipeline empty`, the same as `select`.
- `get a` with one cell path and no spread returns the value at that
path, as before.
- Several paths, or any spread argument, return a list with one value
per path. A spread always produces a list, so `get ...$cols` has the
same shape whatever `$cols` holds: one name gives a one-element list,
and an empty spread gives an empty list.
- Strings in a spread are single column names, so `...[a.b]` looks for a
column named `a.b`. Nested paths are spread as cell-path values, for
example `let paths = [$.a.b]` or `into cell-path`.

## Changes

- `crates/nu-command/src/filters/get.rs`: the signature is `get
...(rest)`. `action` takes the full `Vec<CellPath>`, checks for an empty
pipeline first, then branches on zero paths, one path without a spread,
and everything else. A small helper reads whether the call has a spread
argument (AST and IR calls). The help text and examples describe the
zero, one and many cases and nested spread paths.
- `crates/nu-command/tests/commands/get.rs`: tests for literal before
and after a spread, one-element spreads on a table and a record, empty
literal and variable spreads, a nested cell-path spread, a const spread,
and the empty pipeline with no paths and with an empty spread.

## Testing

On the merged branch: `cargo fmt --all -- --check`, `cargo clippy -p
nu-command --all-targets -- -D warnings` (with `.cargo/ci.toml`), `cargo
test -p nu-command --test tests -- commands::get` (39 passed) and the
`get` examples test all pass. Against the previous `get.rs`, 8 of the 10
new tests fail; the two mixed-order tests pass on both, since that
ordering already worked.

## Release notes

- `get` accepts spread cell paths (`get ...$paths`). Its signature
changes from `get <cell_path> ...(rest)` to `get ...(rest)`.
- `get` with no arguments is no longer a parse error: it returns its
input, or reports `Pipeline empty` when there is no input.
- A `get` call with a spread argument always returns a list, one value
per path.

Fixes #15801

---------

Co-authored-by: Matt Van Horn <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
)

## Description
`window` crashes when the window size is too large to allocate. On
current main:

> [1 2 3] | window 9223372036854775807
panicked: capacity overflow

> [1 2 3] | window 9223372036854775807 --stride 9223372036854775807
panicked: capacity overflow

Both come from `Vec::with_capacity` taking the size the user typed.
`WindowOverlapIter` reserved it in `new`, and `WindowGapIter` reserved
it on every call to `next`.

The overlapping iterator also used `self.window.capacity()` as the
window size, so it depended on the reservation. It now keeps `size` as a
field. The overlap buffer starts empty and is filled with `extend`, and
the gap iterator collects its window, so neither reserves the typed
size.

This is the same problem that #19286 fixed for `chunks`. With
`--remainder` and a stride equal to the size, `window` hands off to
`chunks`, so that case works now too.

I added tests for a huge size on a list, with a huge stride, on list
streams (both iterators), and with `--remainder`, where they check the
actual windows. I ran the `window` and `chunks` tests locally and they
pass. I did not run the full workspace suite.

AI assistance: I used Claude to help find the issue and draft the
change. I reviewed and tested it myself.

## User-facing changes (Release notes)
Fixed a crash when `window` is given a window size too large to
allocate, such as 9223372036854775807.

## Additional notes
n/a

---------

Signed-off-by: G. Manoj Kumar <[email protected]>
…locate (#19296)

## Description
`table --abbreviated` crashes when the count is too large to allocate.
On current main:

> 1..5 | table --abbreviated 9223372036854775807
panicked: capacity overflow

> [[a]; [1]] | table --abbreviated 9223372036854775807
panicked: capacity overflow

`stream_collect_abbreviated` reserves the head and the tail with
`with_capacity(size)`, where `size` is the number the user typed. Both
buffers only ever hold rows that are actually read, so they are now
sized from the iterator's size hint: `head` reserves `hint.min(2 * size
+ 1)`, which is its final length with the `...` row, and `tail` reserves
`hint.saturating_sub(size).min(size)`. Inputs without a hint, like a
range or `every`, start empty and grow.

The output doesn't change: a count larger than the input shows every
row, as before. This is the same problem as #19286 (`chunks`), #19288
(`window`) and #19295 (`last`).

I added tests that a huge count prints the same table as a normal count,
for a plain list and for a list stream, and a huge-count range case in
`table_abbreviation_cut`. I ran the `table::abbreviation` tests locally
and they pass. I did not run the full workspace suite.

AI assistance: I used Claude to help find the issue and draft the
change. I reviewed and tested it myself.

## User-facing changes (Release notes)
Fixed a crash when `table --abbreviated` is given a row count too large
to allocate, such as 9223372036854775807.

## Additional notes
n/a

---------

Signed-off-by: G. Manoj Kumar <[email protected]>
<!--
Thanks for contributing to Nushell!

Before submitting, please read the contributing guide:
https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md

This template helps reviewers understand your changes and allows us to
generate high-quality release notes.
-->

## Description
<!--
Explain what this PR does and why.

This section is intentionally flexible:
- Describe the problem
- Explain your approach
- Include technical details if relevant

Good examples:
- "In this PR, I fixed..."
- "In this PR, I added support for..."
- "This change improves X by..."

Write as much or as little as needed for reviewers to understand your
changes.
-->

## User-facing changes (Release notes)
<!--
This section is used (mostly as-is) for https://www.nushell.sh/blog/

Describe how Nushell behavior changes from a user's perspective.
Do NOT describe internal Rust changes here.

Write in a release note style, for example:
- "Added support for..."
- "Fixed an issue where..."
- "Nushell now supports..."
- "Improved performance of..."

If your changes do NOT affect users (internal refactors, cleanup, etc.),
just write:
- "n/a"
- "nan"
- or similar

This tells us the change should not appear in the changelog.

Tips:
- Focus on observable behavior
- Include examples if helpful
- Keep it concise

You can:
- Write a short paragraph (will appear as a bullet point), OR
- Use headings (###) if your change needs more structure

Avoid writing things like:
- "In this PR, I refactored..."
- "This updates internal code..."

You may leave this blank until the PR is ready.
-->
Previously, the `version check` command would say you are on the latest
release if the lookup failed, now, lookup errors will result in an error
on the command too. Also, if a github token is available on the
environment (`GITHUB_TOKEN` or `GH_TOKEN`) it will be used for the
request to bypass the unauthenticated 60-requests-per-hour github api
rate limit.
## Description

In this PR I fixed #16872.

detect type matches some strings as numbers or booleans but fails when
parsing them. It now keeps the original input and metadata when
conversion fails, including integers that are too large to fit in i64.

Strings with leading or trailing whitespace now stay strings across all
types, including durations. This follows panicbit’s suggestion in the
issue discussion.

Numeric patterns now use ASCII digits, and booleans use ASCII
case-insensitive matching. Integers with a leading + are supported,
while numbers with mixed separators, such as "1,000_000", stay strings.

Updated the help text and regression tests. Each whitespace variant now
runs as a separate test so failures are easier to identify.

Fixes #16872

## User-facing changes (Release notes)

Fixed detect type returning conversion errors for whitespace-prefixed
numbers, Unicode digits, and out-of-range integers. Inputs that fail
conversion now remain unchanged.

Strings with surrounding whitespace, including durations such as " 5ns",
now stay strings. Integers with a leading +, such as "+42", are now
converted. Numbers with mixed comma and underscore separators remain
strings.

## Additional notes

Adds tested help examples and regression tests covering whitespace,
Unicode inputs, integer boundaries, invalid dates, metadata
preservation, and existing conversions.

Validation passed:

> 861 library tests, including command examples; 2 ignored
> 476 detect type integration tests
> cargo fmt --all
> cargo nuclippy
> typos v1.51.1
> git diff --check
)

Bumps
[taiki-e/install-action](https://github.com/taiki-e/install-action) from
2.87.27 to 2.87.29.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/taiki-e/install-action/releases">taiki-e/install-action's
releases</a>.</em></p>
<blockquote>
<h2>2.87.29</h2>
<ul>
<li>
<p>Update <code>zizmor@latest</code> to 1.31.0.</p>
</li>
<li>
<p>Update <code>wasmtime@latest</code> to 49.0.3.</p>
</li>
<li>
<p>Update <code>wasm-tools@latest</code> to 1.262.0.</p>
</li>
<li>
<p>Update <code>uv@latest</code> to 0.13.1.</p>
</li>
<li>
<p>Update <code>trivy@latest</code> to 0.76.0.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.8.4.</p>
</li>
<li>
<p>Update <code>release-plz@latest</code> to 0.3.172.</p>
</li>
<li>
<p>Update <code>osv-scanner@latest</code> to 2.7.0.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.10.11.</p>
</li>
<li>
<p>Update <code>mdbook-d2@latest</code> to 0.3.9.</p>
</li>
<li>
<p>Update <code>kingfisher@latest</code> to 2.13.0.</p>
</li>
<li>
<p>Update <code>kache@latest</code> to 1.2.1.</p>
</li>
<li>
<p>Update <code>just@latest</code> to 1.59.0.</p>
</li>
<li>
<p>Update <code>dprint@latest</code> to 0.63.0.</p>
</li>
<li>
<p>Update <code>cargo-crap@latest</code> to 0.8.0.</p>
</li>
<li>
<p>Update <code>bpf-linker@latest</code> to 0.12.0.</p>
</li>
</ul>
<h2>2.87.28</h2>
<ul>
<li>
<p>Update <code>dprint@latest</code> to 0.62.0.</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.33.0.</p>
</li>
<li>
<p>Update <code>uv@latest</code> to 0.13.0.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.8.1.</p>
</li>
<li>
<p>Update <code>release-plz@latest</code> to 0.3.171.</p>
</li>
<li>
<p>Update <code>rclone@latest</code> to 1.75.2.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.10.7.</p>
</li>
<li>
<p>Update <code>cargo-binstall@latest</code> to 1.25.3.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md">taiki-e/install-action's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<p>All notable changes to this project will be documented in this
file.</p>
<p>This project adheres to <a href="https://semver.org">Semantic
Versioning</a>.</p>
<!-- raw HTML omitted -->
<h2>[Unreleased]</h2>
<h2>[2.87.29] - 2026-10-16</h2>
<ul>
<li>
<p>Update <code>zizmor@latest</code> to 1.31.0.</p>
</li>
<li>
<p>Update <code>wasmtime@latest</code> to 49.0.3.</p>
</li>
<li>
<p>Update <code>wasm-tools@latest</code> to 1.262.0.</p>
</li>
<li>
<p>Update <code>uv@latest</code> to 0.13.1.</p>
</li>
<li>
<p>Update <code>trivy@latest</code> to 0.76.0.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.8.4.</p>
</li>
<li>
<p>Update <code>release-plz@latest</code> to 0.3.172.</p>
</li>
<li>
<p>Update <code>osv-scanner@latest</code> to 2.7.0.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.10.11.</p>
</li>
<li>
<p>Update <code>mdbook-d2@latest</code> to 0.3.9.</p>
</li>
<li>
<p>Update <code>kingfisher@latest</code> to 2.13.0.</p>
</li>
<li>
<p>Update <code>kache@latest</code> to 1.2.1.</p>
</li>
<li>
<p>Update <code>just@latest</code> to 1.59.0.</p>
</li>
<li>
<p>Update <code>dprint@latest</code> to 0.63.0.</p>
</li>
<li>
<p>Update <code>cargo-crap@latest</code> to 0.8.0.</p>
</li>
<li>
<p>Update <code>bpf-linker@latest</code> to 0.12.0.</p>
</li>
</ul>
<h2>[2.87.28] - 2026-10-12</h2>
<ul>
<li>Update <code>dprint@latest</code> to 0.62.0.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/taiki-e/install-action/commit/8cca0918f8471c33515202b73f56ab27f2bed283"><code>8cca091</code></a>
Release 2.87.29</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/fc26824601b40bd3b26712c48942016e2b2d12f6"><code>fc26824</code></a>
Update wasmtime manifest</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/5018b2ebebbb2657068e91071ea73d9a53a44f2d"><code>5018b2e</code></a>
Update <code>zizmor@latest</code> to 1.31.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/d0e52041f440d731eae552c575c81c4cccd601c8"><code>d0e5204</code></a>
Update <code>wasmtime@latest</code> to 49.0.3</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/517774f2ae949bb5d89258edba4466e75f1a33be"><code>517774f</code></a>
Update <code>wasm-tools@latest</code> to 1.262.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/4bc69b1c8214eb6efb50b217dfb04ae04d8af1f5"><code>4bc69b1</code></a>
Update vacuum manifest</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/0470a3f16345a16a36a8b4b51fd72f0de5cc6b5b"><code>0470a3f</code></a>
Update <code>uv@latest</code> to 0.13.1</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/7a2b747eb5f89f888d956c73464777912a182a35"><code>7a2b747</code></a>
Update <code>trivy@latest</code> to 0.76.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/7efb5337f67975eb612c46a52d9c7790a5829f97"><code>7efb533</code></a>
Update <code>tombi@latest</code> to 1.8.4</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/e5d37d6fd4d56d59f3bdc428d4138afa60276954"><code>e5d37d6</code></a>
Update <code>release-plz@latest</code> to 0.3.172</li>
<li>Additional commits viewable in <a
href="https://github.com/taiki-e/install-action/compare/ab6895351a88b908e96a4697860d4ffea5e57dbe...8cca0918f8471c33515202b73f56ab27f2bed283">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=taiki-e/install-action&package-manager=github_actions&previous-version=2.87.27&new-version=2.87.29)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
## Description
`roll` panics when the input is empty. On current main:

> [] | roll down
panicked: assertion failed: k <= self.len()

> {} | roll left
panicked: assertion failed: mid <= self.len()

> [] | roll up --by 3
panicked: attempt to calculate the remainder with a divisor of zero

I found these by running commands against empty and edge-case input. The
cause is in `vertical_rotate_value` and `horizontal_rotate_value`. Both
do `n % len`, which divides by zero when the list or record is empty.
Without `--by`, the default rotation of 1 on an empty slice also
asserts.

The fix uses `checked_rem`, so an empty list or record gets a rotation
of 0 and is returned unchanged. I added tests for `roll up`, `roll
down`, `roll left` and `roll right` on empty input, one for empty
records inside a list, and one for a table where only one row is empty.

I ran the `roll` tests locally and they pass (13). I haven't run the
full test suite, so I'm relying on CI for that.


## User-facing changes (Release notes)
Fixed a panic when using `roll up`, `roll down`, `roll left` or `roll
right` on an empty list or record.

## Additional notes
n/a

---------

Signed-off-by: manoj-1407 <[email protected]>
Signed-off-by: G. Manoj Kumar <[email protected]>
<!--
Thanks for contributing to Nushell!

Before submitting, please read the contributing guide:
https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md

This template helps reviewers understand your changes and allows us to
generate high-quality release notes.
-->

## Description

The `Security audit` job fails on every PR that touches `Cargo.toml` or
`Cargo.lock` (for example #19306). The advisory database now flags three
crates for CVE-2026-111943. Their certificate checks can accept chains
through emSign intermediates whose private keys have leaked. Each crate
has a patched release, so this PR moves all three to it:

| Crate | Old | New | Advisory | Pulled in by |
| --- | --- | --- | --- | --- |
| `rustls-webpki` | 0.103.15 | 0.103.16 | RUSTSEC-2026-0382 | `rustls`
(all TLS connections) |
| `webpki-roots` | 1.0.9 | 1.0.10 | RUSTSEC-2026-0381 | `nu-command`
(direct workspace dependency) |
| `webpki-root-certs` | 1.0.6 | 1.0.10 | RUSTSEC-2026-0383 |
`rustls-platform-verifier` (wasm32 only) |

`webpki-roots` is a direct workspace dependency, so `Cargo.toml` now
requires the patched `1.0.10` instead of only pinning it in the
lockfile. The other two crates are transitive, so only `Cargo.lock`
changes for them (`cargo update -p rustls-webpki -p webpki-roots -p
webpki-root-certs`). Nothing else in the lockfile moves.

<!--
Explain what this PR does and why.

This section is intentionally flexible:
- Describe the problem
- Explain your approach
- Include technical details if relevant

Good examples:
- "In this PR, I fixed..."
- "In this PR, I added support for..."
- "This change improves X by..."

Write as much or as little as needed for reviewers to understand your
changes.
-->

## User-facing changes (Release notes)

- Bumped `rustls-webpki`, `webpki-roots` and `webpki-root-certs` for
CVE-2026-111943 (distrusted emSign intermediates).

<!--
This section is used (mostly as-is) for https://www.nushell.sh/blog/

Describe how Nushell behavior changes from a user's perspective.
Do NOT describe internal Rust changes here.

Write in a release note style, for example:
- "Added support for..."
- "Fixed an issue where..."
- "Nushell now supports..."
- "Improved performance of..."

If your changes do NOT affect users (internal refactors, cleanup, etc.),
just write:
- "n/a"
- "nan"
- or similar

This tells us the change should not appear in the changelog.

Tips:
- Focus on observable behavior
- Include examples if helpful
- Keep it concise

You can:
- Write a short paragraph (will appear as a bullet point), OR
- Use headings (###) if your change needs more structure

Avoid writing things like:
- "In this PR, I refactored..."
- "This updates internal code..."

You may leave this blank until the PR is ready.
-->

## Additional notes

- `cargo audit` 0.22.2 (advisory database of 2026-10-21) on main's
`Cargo.lock`: 3 vulnerabilities, exit 1. On this branch: 0
vulnerabilities, exit 0.
- `cargo audit` still warns that `bincode` (RUSTSEC-2025-0141) and
`yaml-rust` (RUSTSEC-2024-0320) are unmaintained, the same as on main.
These warnings are informational, so the job does not fail on them.
- CI's clippy step (`clippy --workspace --all-targets --profile ci -- -D
warnings` with `.cargo/ci.toml`, plugins included) and `cargo nuclippy`
both pass on macOS.
<!--
Optional.

Examples:
- fixes #123
- closes #456
- related #789

Anything else reviewers should know.
Remove this section if not needed.
-->
Bumps [serde-saphyr](https://github.com/bourumir-wyngs/serde-saphyr)
from 1.3.0 to 2.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/bourumir-wyngs/serde-saphyr/releases">serde-saphyr's
releases</a>.</em></p>
<blockquote>
<h2>2.0.0 Performance and compliance release</h2>
<p>Breaking changes</p>
<ul>
<li>There is a new capture_comments feature that is default on and can
be disabled, winning about 10 % percent of performance. This feature was
the main reason to advance the first version digit, because formally
this is a breaking change.</li>
<li>Preserving inner error in alias errors in the newly added field in
<code>AliasError</code>. The old field (text representation) is still
present, but deprecated. Another formally breaking change, even if
unlikely to be a problem.</li>
<li>from_multiple, from_multiple_with_options, from_slice_multiple, and
from_slice_multiple_with_options now accept T: Deserialize&lt;'de&gt;
instead of T: DeserializeOwned, allowing values to borrow from the
input. Direct calls require no changes. Function pointers or callbacks
may need adjustments.</li>
<li>granit_parser 2.0.0 has some corner formally breaking changes, but
mostly in very obscure parts (see its changelog for details).</li>
</ul>
<p>All other changes are backward compatible:</p>
<ul>
<li>For projects aiming for very strict YAML compliance rather than
drop-in compatibility with mainstream libraries, it is not possible to
disable all compromises with <code>strict_indentation</code> flag in
Options.</li>
<li>Value serialization target can now receive <code>Inf</code> and
<code>NaN</code> if so configured. Even if most common serde_json::Value
cannot take them (produces <code>null</code> instead), many other
abstract value receivers can.</li>
<li>Made <code>huge_documents</code> and
<code>serde_derived_types</code> enable <code>deserialize</code>, fixing
isolated feature
builds with <code>--no-default-features</code>, including autopkgtests
of Debian team (as <a
href="https://dfsg-new-queue.debian.org/reviews/rust-serde-saphyr">observed</a>).</li>
<li>Fix borrow support for untagged enum (PR <a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/195">#195</a>,
thanks <a
href="https://github.com/Guiguiprim"><code>@​Guiguiprim</code></a>
).</li>
<li>Added <code>SerializerOptions::no_lang_directive</code> (default
<code>false</code>) to suppress the <code>%YAML 1.2</code> directive
independently of <code>yaml_12</code>'s quoting (requirement obvious
from <a
href="https://github.com/nushell/nushell/blob/d7cb4e589ea53bd1a0bb29dd78d63b76fcb59862/crates/nu-heavy-utils/src/yaml/serialize.rs#L158-L200">Nushell
code work work arrounds</a>).</li>
<li>Property interpolation can now be configured to be fully Docker
Compose compliant if preferred (we are not fans of undefined property
defaulting to empty but may be opinion-based).</li>
<li>It is possible to deserialize multiple documents into collection
other than vector: <a
href="https://docs.rs/serde-saphyr/latest/serde_saphyr/fn.from_str_multiple.html"><code>serde_saphyr::from_str_multiple</code></a>
supports any collection implementing <code>Default +
Extend&lt;T&gt;</code>, such as <code>Vec&lt;T&gt;</code>,
<code>VecDeque&lt;T&gt;</code>, <code>BTreeSet&lt;T&gt;</code>, or
custom storage like <a
href="https://docs.rs/smallvec/latest/smallvec/struct.SmallVec.html"><code>SmallVec&lt;T&gt;</code></a>.</li>
</ul>
<p>Other fixes</p>
<ul>
<li>Keep span offsets relative to the caller's input after a BOM (<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/212">#212</a>)</li>
<li>Compare mapping keys regardless of entry order (<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/211">#211</a>)</li>
<li>Report a collection where &amp;str is expected, not end of input (<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/210">#210</a>)</li>
<li>Replace non-printable characters in Commented comments (<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/209">#209</a>)</li>
<li>Implement dedicated YAML trim (<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/206">#206</a>).
Default Rust trim() considers special Unicode whitespace chars that YAML
calls to be ignored.</li>
<li>Improve multi-snippet error rendering (<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/208">#208</a>).
Do not rely on error texts for functionallity.</li>
<li>Fix serializer indentation after - and ? so output reads back- <a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/207">#207</a></li>
<li>Report a parser error after an implicit document end in
single-document entry points- <a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/220">#220</a>
<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/220">#220</a>,
thanks <a
href="https://github.com/pcshrosbree"><code>@​pcshrosbree</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/bourumir-wyngs/serde-saphyr/blob/master/CHANGELOG.md">serde-saphyr's
changelog</a>.</em></p>
<blockquote>
<h2>2.0.0</h2>
<h3>YAML changes</h3>
<ul>
<li>Tags selecting unit enum variants now reject non-null payloads
instead of silently
discarding them (<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/236">#236</a>).
Use a bare variant name, a tag with empty content, or a
tag followed by <code>~</code> or <code>null</code>; quoted strings and
collections are rejected.</li>
<li>Composite mapping keys are not compared regardless of entry order
(thanks <a
href="https://github.com/yuxi-liu-wired"><code>@​yuxi-liu-wired</code></a>)
.</li>
<li>Commented<!-- raw HTML omitted --> now writes its output replacing
characters not allowed in comments (non printable) by spaces.</li>
</ul>
<h3>Added</h3>
<ul>
<li>Added public <code>path_map::PathKind</code>,
<code>PathKey::segments()</code>, and
<code>PathMap::locations_for()</code>
for inspecting validation paths and resolving their YAML use/definition
locations,
including best-effort spelling matches and recorded ancestor/root
fallback.</li>
<li>Added <code>RenderOptions::line_offset</code> and
<code>RenderOptions::source_name</code> for displaying
embedded YAML diagnostics at their containing document's line numbers
and naming
the root source in snippet headers, including the new
<code>miette::to_miette_report_with_options</code> entry point. Included
files retain their own
names and coordinates, and stored error locations and spans are
unchanged.</li>
<li>Added <code>PropertySyntax::DockerCompose</code> for
Compose-compatible property interpolation.</li>
<li>Added the default-enabled <code>comments</code> feature, forwarding
to granit-parser's matching
feature. Builds with <code>default-features = false</code> must enable
it to use <code>Commented&lt;T&gt;</code>,
<code>CommentPosition</code>, comment options, or comment budget fields
and reports. Without it,
YAML comments are still accepted and validated, but their text is not
retained.</li>
<li>Added <code>Options::non_finite_float_policy</code> with
<code>NonFiniteFloatPolicy::{PassThrough, Reject, AsString}</code>
to configure non-finite floats delivered through
<code>deserialize_any</code>. Explicit policies override
the legacy boolean; leaving the field unconfigured preserves its
behavior.</li>
<li>Added the <code>borrowed_context</code> example showing recursive
<code>Serialize</code> adapters that borrow
an existing value tree and per-call formatting context, composing with
<code>Tagged&lt;T&gt;</code> and
style wrappers without building a second container tree or using
thread-local state.</li>
<li>Added <code>SerializerOptions::no_lang_directive</code> (default
<code>false</code>) to suppress the
<code>%YAML 1.2</code> directive and its leading <code>---</code> marker
independently of <code>yaml_12</code>'s quoting.</li>
<li>Added <code>from_str_multiple</code>,
<code>from_bytes_multiple</code>, and their <code>_with_options</code>
variants to
deserialize multiple YAML documents into any <code>C: Default +
Extend&lt;T&gt;</code>, including vectors,
queues, sets, and custom accumulators. Values can borrow from the input
string or UTF-8 byte
slice. Explicit type arguments specify both the document and collection
types, for example
<code>from_str_multiple::&lt;String,
Vec&lt;_&gt;&gt;(input)</code>.</li>
<li>Added an <code>error: Box&lt;Error&gt;</code> field to
<code>Error::AliasError</code>, which keeps the original error
when an aliased value fails to deserialize. A custom
<code>MessageFormatter</code> or <code>Localizer</code>
now applies to that error, and <code>std::error::Error::source</code>
returns it
(<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/199">#199</a>).</li>
</ul>
<h3>Changed</h3>
<ul>
<li><strong>Breaking:</strong> <code>from_multiple</code>,
<code>from_multiple_with_options</code>,
<code>from_slice_multiple</code>, and
<code>from_slice_multiple_with_options</code> now accept <code>T:
Deserialize&lt;'de&gt;</code> so values can borrow from
the input. They retain their names, single type parameter, and
<code>Vec&lt;T&gt;</code> returns and are not
deprecated. Ordinary calls, including
<code>from_multiple::&lt;Config&gt;(input)</code> and generic callers
with <code>T: DeserializeOwned</code>, continue to work. Function
pointers or callbacks accepting arbitrary
input lifetimes may need forwarding closures, such as <code>|input|
from_multiple::&lt;String&gt;(input)</code>.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/bourumir-wyngs/serde-saphyr/commit/e3a4566ef2692f6b9c906a103f6841441a1924ba"><code>e3a4566</code></a>
Clarified borrowing usage and fixed borrowing test.</li>
<li><a
href="https://github.com/bourumir-wyngs/serde-saphyr/commit/fc4c875c2d1ae7a3368b8900739d26b88d13d55d"><code>fc4c875</code></a>
Merge remote-tracking branch 'origin/master'</li>
<li><a
href="https://github.com/bourumir-wyngs/serde-saphyr/commit/e2f8eb3d67d3043b137f00fdb586eab72beda43f"><code>e2f8eb3</code></a>
Make fuzz and miri mandatory steps for release workflow. use
granit-parser fr...</li>
<li><a
href="https://github.com/bourumir-wyngs/serde-saphyr/commit/9728ccb466d251059f05123dc44a8304c0eae35d"><code>9728ccb</code></a>
Report a parser error after an implicit document end in single-document
entry...</li>
<li><a
href="https://github.com/bourumir-wyngs/serde-saphyr/commit/fb50b1bc88fc1c4746cef4211ecba7712ae35f23"><code>fb50b1b</code></a>
Improve documentation</li>
<li><a
href="https://github.com/bourumir-wyngs/serde-saphyr/commit/f3f3786b92c25d83b0d55cd73a6d2e7ccb4e568e"><code>f3f3786</code></a>
Improve documentation</li>
<li><a
href="https://github.com/bourumir-wyngs/serde-saphyr/commit/d43a925d3b12dabbe3adfd3a6e4fbcb06f4db7a7"><code>d43a925</code></a>
Removed some too aggressive deprecations, this is not required with the
major...</li>
<li><a
href="https://github.com/bourumir-wyngs/serde-saphyr/commit/2db19936273a9b8382a0770f22b4cff0ebd9c683"><code>2db1993</code></a>
bw/i205 (<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/215">#215</a>)</li>
<li><a
href="https://github.com/bourumir-wyngs/serde-saphyr/commit/c09c094ae054cafbb4b14daceb216546023d8ac0"><code>c09c094</code></a>
Bump granit-parser from <code>03889c5</code> to <code>f4bf73a</code> (<a
href="https://redirect.github.com/bourumir-wyngs/serde-saphyr/issues/216">#216</a>)</li>
<li><a
href="https://github.com/bourumir-wyngs/serde-saphyr/commit/70272b71d7d36254c5521585439714014bca5ed3"><code>70272b7</code></a>
Update cargo to use granit parser 2.0.0</li>
<li>Additional commits viewable in <a
href="https://github.com/bourumir-wyngs/serde-saphyr/compare/1.3.0...2.0.0">compare
view</a></li>
</ul>
</details>
<br />

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [arboard](https://github.com/1Password/arboard) from 3.6.1 to
3.7.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/1Password/arboard/releases">arboard's
releases</a>.</em></p>
<blockquote>
<h2>v3.7.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Return a conversion failure error when CGImageCreate fails by <a
href="https://github.com/complexspaces"><code>@​complexspaces</code></a>
in <a
href="https://redirect.github.com/1Password/arboard/pull/205">1Password/arboard#205</a></li>
<li>Properly encode/decode MIME=text/uri-list by <a
href="https://github.com/luca020400"><code>@​luca020400</code></a> in <a
href="https://redirect.github.com/1Password/arboard/pull/217">1Password/arboard#217</a></li>
<li>Increase windows-sys lower bound to 0.62 by <a
href="https://github.com/T-256"><code>@​T-256</code></a> in <a
href="https://redirect.github.com/1Password/arboard/pull/220">1Password/arboard#220</a></li>
<li>Add example to <code>Get</code> and <code>Set</code> by <a
href="https://github.com/Its-Just-Nans"><code>@​Its-Just-Nans</code></a>
in <a
href="https://redirect.github.com/1Password/arboard/pull/224">1Password/arboard#224</a></li>
<li>Add a <code>wait_once</code> to support waiting for just one
clipboard request by <a
href="https://github.com/joshtriplett"><code>@​joshtriplett</code></a>
in <a
href="https://redirect.github.com/1Password/arboard/pull/213">1Password/arboard#213</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/luca020400"><code>@​luca020400</code></a> made
their first contribution in <a
href="https://redirect.github.com/1Password/arboard/pull/217">1Password/arboard#217</a></li>
<li><a href="https://github.com/T-256"><code>@​T-256</code></a> made
their first contribution in <a
href="https://redirect.github.com/1Password/arboard/pull/220">1Password/arboard#220</a></li>
<li><a
href="https://github.com/Its-Just-Nans"><code>@​Its-Just-Nans</code></a>
made their first contribution in <a
href="https://redirect.github.com/1Password/arboard/pull/224">1Password/arboard#224</a></li>
<li><a
href="https://github.com/joshtriplett"><code>@​joshtriplett</code></a>
made their first contribution in <a
href="https://redirect.github.com/1Password/arboard/pull/213">1Password/arboard#213</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/1Password/arboard/compare/v3.6.1...v3.7.0">https://github.com/1Password/arboard/compare/v3.6.1...v3.7.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/1Password/arboard/commit/5f5c8637911ba219edee619105a19b4f74e66a9f"><code>5f5c863</code></a>
Release 3.7.0</li>
<li><a
href="https://github.com/1Password/arboard/commit/ab9663be5d27478399b215c1ab57f1d6574f74fc"><code>ab9663b</code></a>
Add example demonstrating <code>wait_once</code></li>
<li><a
href="https://github.com/1Password/arboard/commit/b9000b17a6a0c89e9c27f469f00d4e50c3910486"><code>b9000b1</code></a>
Add a <code>wait_once</code> to support waiting for just one clipboard
request</li>
<li><a
href="https://github.com/1Password/arboard/commit/2ea0ff6ddbcc80cc3b9f1a951879d416f775f753"><code>2ea0ff6</code></a>
wayland: Factor out option setting into a method</li>
<li><a
href="https://github.com/1Password/arboard/commit/b7e47c8d3b6b1c2d90e02e55969d0f92c543c2ed"><code>b7e47c8</code></a>
Update lib.rs</li>
<li><a
href="https://github.com/1Password/arboard/commit/2b2050eba1f6017721433a8640a9b2aae92014ba"><code>2b2050e</code></a>
Bump step-security/setup-rust-toolchain from 1.16.1 to 2.0.0</li>
<li><a
href="https://github.com/1Password/arboard/commit/6b0968206393df5a14c66d584f0d9f1f4afe9a1a"><code>6b09682</code></a>
Bump step-security/harden-runner from 2.20.0 to 2.21.1</li>
<li><a
href="https://github.com/1Password/arboard/commit/9f7b05ca9178e3c28ec5e59a522786a8ea591cce"><code>9f7b05c</code></a>
Bump actions/checkout from 4.3.1 to 7.0.0</li>
<li><a
href="https://github.com/1Password/arboard/commit/890e919929125f927e6f292091f7fbf9b37889e1"><code>890e919</code></a>
Apply GitHub Actions security best practices</li>
<li><a
href="https://github.com/1Password/arboard/commit/d7c6cc971baca5e7d6fe45c3c28cd828f351558e"><code>d7c6cc9</code></a>
bump windows-sys lower bound</li>
<li>Additional commits viewable in <a
href="https://github.com/1Password/arboard/compare/v3.6.1...v3.7.0">compare
view</a></li>
</ul>
</details>
<br />

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…s` (#19125)

## Description

`update cells` now takes the columns to update as rest arguments, and
`--columns` is deprecated. That's the direction agreed in #15477 and
matches `select`, `reject` and the `into` commands.

This picks up #17815, which was closed because the author stopped
responding (credit to @tauanbinato for the original change). I rebased
the idea onto current main, which also has `--recursive` now, and made
the follow-up changes @fdncred asked for there:

- the two `update cells -c [...]` calls in
`crates/nu-std/tests/test_std-rfc_tables.nu` now use rest arguments
- the `open` test in `crates/nu-command/tests/commands/open.rs` already
uses no `-c`, so it didn't need a change

A couple of details:

- `--columns` still works and shows the deprecation warning on first
use. If someone passes both, the two lists are merged.
- `-c []` still means "update no columns", and an empty spread like
`...$cols` with `$cols = []` means the same. Only calling it with no
flag and no columns at all updates everything, same as before.
- The rest parameter is named `rest`, like `select` and `reject`, so it
doesn't share a name with the deprecated `--columns` flag.
- Rest columns go through the same string coercion as `-c`, so int
column names work either way (`let cols = [1]; {"1": 1} | update cells {
$in + 1 } ...$cols`).
- The deprecation `since` is `0.117.0`, since 0.116.0 shipped without
it.

Checked with a local build:

```
> {a: 1, b: 2, c: 3} | update cells { $in + 10 } a c | to nuon
{a: 11, b: 2, c: 13}
> {a: 1, b: 2, c: 3} | update cells -c [a] { $in + 10 } | to nuon   # warns once, still works
{a: 11, b: 2, c: 3}
> {a: 1, b: 2, c: 3} | update cells -c [] { $in + 10 } | to nuon
{a: 1, b: 2, c: 3}
> {a: 1, b: 2, c: 3} | update cells -c [a] { $in + 10 } c | to nuon
{a: 11, b: 2, c: 13}
> let cols = []; {a: 1, b: 2, c: 3} | update cells { $in + 10 } ...$cols | to nuon
{a: 1, b: 2, c: 3}
> let cols = [1]; {"1": 1, b: 2} | update cells { $in + 1 } ...$cols | to nuon
{"1": 2, b: 2}
```

The converted example fails on main with `ExtraPositional` and passes
here. The new tests in
`crates/nu-cmd-extra/tests/commands/filters/update_cells.rs` cover
`--columns`, merging it with rest columns, empty column lists and int
column names. `cargo fmt --all -- --check`, `cargo clippy -p
nu-cmd-extra --all-targets -- -D warnings`, `cargo test -p nu-cmd-extra`
and the std test suite (`testing run-tests --path crates/nu-std`, 251
tests) all pass.

## User-facing changes (Release notes)

`update cells` now accepts the columns to update as rest arguments, and
the `--columns` (`-c`) flag is deprecated:

```nushell
# before
[[name val1 val2]; [foo 1 4] [bar 8 3]] | update cells -c [val1 val2] { $in * 2 }
# after
[[name val1 val2]; [foo 1 4] [bar 8 3]] | update cells { $in * 2 } val1 val2
```

## Additional notes

closes #15477
Bumps [tango-bench](https://github.com/bazhenov/tango) from 0.8.0 to
0.9.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/bazhenov/tango/releases">tango-bench's
releases</a>.</em></p>
<blockquote>
<h2>v0.9.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Add --strip-candidate/--strip-baseline to compare benchmarks from
the same executable by <a
href="https://github.com/bazhenov"><code>@​bazhenov</code></a> in <a
href="https://redirect.github.com/bazhenov/tango/pull/83">bazhenov/tango#83</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/bazhenov/tango/compare/v0.8.0...v0.9.0">https://github.com/bazhenov/tango/compare/v0.8.0...v0.9.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/bazhenov/tango/commit/6226638e0b40a094e87e83ffd5da5aa66ddee26a"><code>6226638</code></a>
Release 0.9.0</li>
<li><a
href="https://github.com/bazhenov/tango/commit/1d033ad9dc51d9bd7865c3b60b9170acb7a75c7c"><code>1d033ad</code></a>
Adding script to check how stable cputime is in GH CI</li>
<li><a
href="https://github.com/bazhenov/tango/commit/c8150c430a1348a9b81bcd52e3e5ff32c842f5cf"><code>c8150c4</code></a>
Increasing number of iterations in cputime test</li>
<li><a
href="https://github.com/bazhenov/tango/commit/a6b0547b84fcf886259390bad40e2ac61c16aa99"><code>a6b0547</code></a>
IndexedBenchmark type added to protected agains index shifting when
filtering...</li>
<li><a
href="https://github.com/bazhenov/tango/commit/03a24743a0cb1a900cd1a24acf9155e085504e46"><code>03a2474</code></a>
Delete dead code</li>
<li><a
href="https://github.com/bazhenov/tango/commit/1ef340141e02398116b7c0b7d808db2cd1010584"><code>1ef3401</code></a>
Merging binary search benchmarks into a single one</li>
<li><a
href="https://github.com/bazhenov/tango/commit/4a59272827e80c0e0c21dee11cbd4f4312438141"><code>4a59272</code></a>
Preserving order of benchmarks</li>
<li><a
href="https://github.com/bazhenov/tango/commit/801fdf0e3739462c18023806d990274abae1c940"><code>801fdf0</code></a>
Add --strip-candidate/--strip-baseline to compare benchmarks from the
same ex...</li>
<li>See full diff in <a
href="https://github.com/bazhenov/tango/compare/v0.8.0...v0.9.0">compare
view</a></li>
</ul>
</details>
<br />

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Darren Schroeder <[email protected]>
…s everywhere (#19303)

## Description

Since #19007, `table --expand` squeezed short columns to 4 characters
whenever another column held a nested table. The nested-table column
took every spare character before any other column grew, so an `env`
listing printed `SOME_BIG_SESSION_ENV_VAR` as seven 4-character lines.
`table --expand` also ignored `metadata set
--table-width-priority-columns`. So did `table` at 120 columns or less,
unless wrapping and header-on-separator were both on.

An `env`-style listing with nested values, `table -e`, header on the
separator, 100 wide:

```nushell
$env.config.table.header_on_separator = true; [[key value]; [CLAUDE_CODE_CHILD_SESSION 1] [HOME /Users/fdncred] [PATH [/Users/fdncred/.local/bin /usr/local/bin /opt/homebrew/opt/python/libexec/bin /Users/fdncred/.cargo/bin /opt/homebrew/opt/uutils-coreutils/libexec/uubin]] [FPATH "/Users/fdncred/.grok/completions/zsh:/Users/fdncred/.zsh:/opt/homebrew/share/zsh/site-functions:/usr/local/share/zsh/site-functions"]] | table -e -w 100
```

Before:
```nushell
╭─#─┬─key──┬─────────────────────────────────────────value─────────────────────────────────────────╮
│ 0 │ CLAU │                                                                                     1 │
│   │ DE_C │                                                                                       │
│   │ ODE_ │                                                                                       │
│   │ CHIL │                                                                                       │
│   │ D_SE │                                                                                       │
│   │ SSIO │                                                                                       │
│   │ N    │                                                                                       │
│ 1 │ HOME │ /Users/fdncred                                                                        │
│ 2 │ PATH │ ╭───┬──────────────────────────────────────────────────╮                              │
│   │      │ │ 0 │ /Users/fdncred/.local/bin                        │                              │
│   │      │ │ 1 │ /usr/local/bin                                   │                              │
│   │      │ │ 2 │ /opt/homebrew/opt/python/libexec/bin             │                              │
│   │      │ │ 3 │ /Users/fdncred/.cargo/bin                        │                              │
│   │      │ │ 4 │ /opt/homebrew/opt/uutils-coreutils/libexec/uubin │                              │
│   │      │ ╰───┴──────────────────────────────────────────────────╯                              │
│ 3 │ FPAT │ /Users/fdncred/.grok/completions/zsh:/Users/fdncred/.zsh:/opt/homebrew/share/zsh/site │
│   │ H    │ -functions:/                                                                          │
│   │      │ usr/local/share/zsh/site-functions                                                    │
╰───┴──────┴───────────────────────────────────────────────────────────────────────────────────────╯
```

After:
```nushell
╭─#─┬────────────key────────────┬──────────────────────────────value───────────────────────────────╮
│ 0 │ CLAUDE_CODE_CHILD_SESSION │                                                                1 │
│ 1 │ HOME                      │ /Users/fdncred                                                   │
│ 2 │ PATH                      │ ╭───┬──────────────────────────────────────────────────╮         │
│   │                           │ │ 0 │ /Users/fdncred/.local/bin                        │         │
│   │                           │ │ 1 │ /usr/local/bin                                   │         │
│   │                           │ │ 2 │ /opt/homebrew/opt/python/libexec/bin             │         │
│   │                           │ │ 3 │ /Users/fdncred/.cargo/bin                        │         │
│   │                           │ │ 4 │ /opt/homebrew/opt/uutils-coreutils/libexec/uubin │         │
│   │                           │ ╰───┴──────────────────────────────────────────────────╯         │
│ 3 │ FPATH                     │ /Users/fdncred/.grok/completions/zsh:/Users/fdncred/.zsh:/opt/ho │
│   │                           │ mebrew/share/zsh/site-functions:/usr/local/share/zsh/site-functi │
│   │                           │ ons                                                              │
╰───┴───────────────────────────┴──────────────────────────────────────────────────────────────────╯
```

A `plugin list`-shaped table, `table -e`, 120 wide:

```nushell
[[name version status pid filename shell commands]; [dns 4.0.13-alpha.1 loaded null C:\Users\x\.cargo\bin\nu_plugin_dns.exe null [[name description]; ["dns query" "Perform a DNS query"]]] [file 0.27.0 loaded null C:\Users\x\.cargo\bin\nu_plugin_file.exe null [[name description]; [file "View file format information"]]]] | table -e -w 120
```

Before:
```nushell
╭───┬──────┬────────────────┬────────┬─────┬──────────────────────────────────────────┬───────┬────────────────────────╮
│ # │ name │    version     │ status │ pid │                 filename                 │ shell │        commands        │
├───┼──────┼────────────────┼────────┼─────┼──────────────────────────────────────────┼───────┼────────────────────────┤
│ 0 │ dns  │ 4.0.13-alpha.1 │ loaded │     │ C:\Users\x\.cargo\bin\nu_plugin_dns.exe  │       │ ╭───┬───────────╮      │
│   │      │                │        │     │                                          │       │ │ # │   name    │      │
│   │      │                │        │     │                                          │       │ ├───┼───────────┤      │
│   │      │                │        │     │                                          │       │ │ 0 │ dns query │      │
│   │      │                │        │     │                                          │       │ ╰───┴───────────╯      │
│ 1 │ file │ 0.27.0         │ loaded │     │ C:\Users\x\.cargo\bin\nu_plugin_file.exe │       │ ╭───┬──────┬─────────╮ │
│   │      │                │        │     │                                          │       │ │ # │ name │ descrip │ │
│   │      │                │        │     │                                          │       │ │   │      │ tion    │ │
│   │      │                │        │     │                                          │       │ ├───┼──────┼─────────┤ │
│   │      │                │        │     │                                          │       │ │ 0 │ file │ View    │ │
│   │      │                │        │     │                                          │       │ │   │      │ file    │ │
│   │      │                │        │     │                                          │       │ │   │      │ format  │ │
│   │      │                │        │     │                                          │       │ │   │      │ informa │ │
│   │      │                │        │     │                                          │       │ │   │      │ tion    │ │
│   │      │                │        │     │                                          │       │ ╰───┴──────┴─────────╯ │
╰───┴──────┴────────────────┴────────┴─────┴──────────────────────────────────────────┴───────┴────────────────────────╯
```

After:
```nushell
╭───┬──────┬────────────────┬────────┬─────┬─────────────────────────────────┬───────┬─────────────────────────────────╮
│ # │ name │    version     │ status │ pid │            filename             │ shell │            commands             │
├───┼──────┼────────────────┼────────┼─────┼─────────────────────────────────┼───────┼─────────────────────────────────┤
│ 0 │ dns  │ 4.0.13-alpha.1 │ loaded │     │ C:\Users\x\.cargo\bin\nu_plugin │       │ ╭───┬───────────┬─────────────╮ │
│   │      │                │        │     │ _dns.exe                        │       │ │ # │   name    │ description │ │
│   │      │                │        │     │                                 │       │ ├───┼───────────┼─────────────┤ │
│   │      │                │        │     │                                 │       │ │ 0 │ dns query │ Perform a   │ │
│   │      │                │        │     │                                 │       │ │   │           │ DNS query   │ │
│   │      │                │        │     │                                 │       │ ╰───┴───────────┴─────────────╯ │
│ 1 │ file │ 0.27.0         │ loaded │     │ C:\Users\x\.cargo\bin\nu_plugin │       │ ╭───┬──────┬──────────────────╮ │
│   │      │                │        │     │ _file.exe                       │       │ │ # │ name │   description    │ │
│   │      │                │        │     │                                 │       │ ├───┼──────┼──────────────────┤ │
│   │      │                │        │     │                                 │       │ │ 0 │ file │ View file format │ │
│   │      │                │        │     │                                 │       │ │   │      │  information     │ │
│   │      │                │        │     │                                 │       │ ╰───┴──────┴──────────────────╯ │
╰───┴──────┴────────────────┴────────┴─────┴─────────────────────────────────┴───────┴─────────────────────────────────╯
```

A record with a 100-character key, `table -w 60`:

```nushell
{("k" | fill -c k -w 100): 1, b: 2} | table -w 60
```

Before:
```nushell
╭────────────────────────────────────────────────────┬─────╮
│ kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk │ ... │
│ kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk │     │
│ b                                                  │ ... │
╰────────────────────────────────────────────────────┴─────╯
```

After:
```nushell
╭──────────────────────────────────────────────────────┬───╮
│ kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk │ 1 │
│ kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk     │   │
│ b                                                    │ 2 │
╰──────────────────────────────────────────────────────┴───╯
```

CJK headers with `header_on_separator`, `table -e`: This intentionally
doesn't draw the characters on the headers, even when the setting is set
to true, in order to avoid misaligned tables. (images convey this better
below)

```nushell
$env.config.table.header_on_separator = true; [[id 名前 inner]; [1 漢字 [[鍵 a]; [x 1]]]] | table -e
```

Before:
<img width="1672" height="718" alt="image"
src="https://github.com/user-attachments/assets/773cd8f2-9fe1-4185-bf0c-c0a1637e7deb"
/>

After:
<img width="1672" height="924" alt="image"
src="https://github.com/user-attachments/assets/09cdbc27-0425-4547-a8e2-902ff725e6dd"
/>



## User-facing changes (Release notes)

- `table` and `table --expand` shrink the widest columns first, so short
columns such as keys, names and sizes keep their width next to long text
or nested tables.
- `metadata set --table-width-priority-columns`, which `ls` and `ps`
also set, now works with `table --expand` and at every terminal width. A
priority column shows wherever it would without the priority, and
columns to its right hide to leave it up to a third of the table width.
- `table --expand` draws a nested table whenever it fits, hiding columns
to its right first and collapsing the nested table's own columns behind
`...`, instead of showing `[table N rows]`. Nested tables no longer drop
columns without a `...` marker.
- Tables keep each visible column at least 10 characters wide (or its
natural width), hiding columns from the right when they don't fit.
Without `header_on_separator` this shows more columns on narrow
terminals; with it, fewer, since columns are no longer squeezed to 4
characters.
- Record keys wrap when a key is too long for the terminal, instead of
hiding the values.
- With `header_on_separator`, headers with CJK characters, emoji or
Arabic ligatures are drawn in their own row, so the table border lines
up.

## Additional notes
<!--
Optional.

Examples:
- fixes #123
- closes #456
- related #789

Anything else reviewers should know.
Remove this section if not needed.
-->
…19227) (#19260)

## Description

Fixes #19227. `print` ignored failures of external commands because it
called `ignore_error(true)` on the child's byte streams, so a pipeline
such as a failing external command piped into `print` exited with 0
while the same failure from an internal command exited with 1. This
removes the suppression so non-zero exits propagate. Tests were added to
`pipefail_feature` (`fail 30 | print`, `print --raw`, `print -e`) plus
`pipefail_print_keeps_output_before_failure` and
`pipefail_print_stderr_keeps_output_before_failure`, which check that
output still reaches stdout / stderr before the failure exit code.

`^cmd | print <args>` still drops the piped input without waiting on the
child, so with pipefail off it still exits 0, the same as `| ignore`.

Tests run: `cargo test --test tests -- pipefail_feature`, `cargo clippy
--tests`, `cargo fmt --all -- --check`.

## User-facing changes (Release notes)

Fixed an issue where `print` hid the failure of an external command: a
failing external command piped into `print` now makes the pipeline fail
with its non-zero exit code instead of exiting with 0. This is a
behavior change for scripts that relied on the old result, for example
`^grep pat file | print` with no match now errors, and `do -i { ^false }
| print` now fails like `do -i { ^false } | collect` already does.

## Additional notes

fixes #19227
## Description

The local_socket feature needed to be added to the
nu-plugin-test-support dep.
… time, and correct stale guidance in the MCP instructions and AGENTS.md (#19318)

## Description

Once `$history` was full, each new evaluation shifted every older entry
down by one. `History::push` returned the buffer length after evicting,
so an index from an earlier response could point at a later result,
while the instructions promised "indices do not shift, older ones simply
become unavailable". This PR makes that promise true: indices only
increase, and an evicted index reads as `null`. `push` also evicts until
the buffer fits the limit instead of dropping one entry per push, so
lowering `NU_MCP_HISTORY_LIMIT` trims `$history` to the new limit.

Two `evaluate` calls sent at once (agents send parallel tool calls) each
forked the same state, and the one that finished last overwrote the
other. Both responses reported the same `history_index`, and the other
call's `$history` entry and `$env` changes were lost. Evaluations now
run one at a time, like lines typed into a REPL: a lock is held from
fork to commit and released early when an evaluation is promoted to a
background job. `list_commands` and `command_help` don't wait for it.

The rest of the text `nu --mcp` sends to agents (`instructions.md`,
`evaluate_tool.md`, and the `list_commands` / `command_help`
descriptions) also gave advice that nushell contradicts. It said `ls
**/*` walks hidden directories and `glob` avoids them, when the reverse
is true. It used a `job spawn --tag` flag that was renamed in #17496,
and said `command_help` shows input/output types, which it doesn't. The
`evaluate` tool description still told agents to avoid large output,
which contradicts the server instructions sent in the same session. This
PR rewrites those passages to match nushell, tones down the all-caps
"THE RULE" section while keeping the rule and its reason, and fills in
the two short tool descriptions with their real output format and
limits.

In `AGENTS.md`, it fixes the claim that `cargo nuclippy-tests` runs all
tests (it runs clippy), says how integration-test targets are named in
crates without a `tests` target, states three wordy or hedged rules more
plainly, and fixes a typo.

## User-facing changes (Release notes)

- In `nu --mcp`, `$history` indices no longer shift when old entries are
evicted. An evicted index reads as `null`, and `$history | length`
counts every result stored in the session. Lowering
`NU_MCP_HISTORY_LIMIT` now trims `$history` to the new limit.
- `nu --mcp` now runs `evaluate` calls one at a time. Before, two calls
sent together could get the same `history_index`, and one call's
`$history` entry and `$env` changes were lost.
- The MCP server's instructions and tool descriptions now match
nushell's behavior for `ls` vs `glob` on hidden directories, `job spawn
--description`, `command_help` output, and `\u{...}` escapes.
- The `evaluate` tool description no longer tells agents to avoid large
output. Output over the limit already comes back as a `note` pointing at
`$history`.

## Additional notes
<!--
Optional.

Examples:
- fixes #123
- closes #456
- related #789

Anything else reviewers should know.
Remove this section if not needed.
-->
## Description

Changes the way that custom types are exposed in order to allow them to
be used in type signatures. This also enabled them to be resolved
correctly in the LSP.

## User-facing changes (Release notes)

- Custom types can now be used within type signatures. For plugins,
custom types for all installed plugins can be use. They will resolve
appropriately in the Nushell LSP. The following example show how to set
the return type for a command

```
def f [v: semver]: semver -> semver { $v }                              │

def ls-df [ ]: nothing -> polars_dataframe {
  ls | polars into-df 
}
```
## Description

An `extern` signature drives completions, but it doesn't guard anything.
`extern "git status" [--short(-s)]; git status --shrt` passes `--shrt`
to git, and git prints its own usage error. That's because externs
accept unknown arguments, so nushell can wrap a tool without declaring
every flag it has.

`extern --strict` (and `export extern --strict`) turns a flag the
signature doesn't declare into a parse error, with the "Did you mean"
hint that internal commands already give. Everything else an extern
accepts still works: positional arguments, `--` and the arguments after
it all reach the tool. `--help` is always allowed, so `git status
--help` still shows git's help. `-h` isn't exempt, since it means
something else for some tools (`ls -h`, `grep -h`).

### Before & After

| Command | Before PR | After PR |
| --- | --- | --- |
| `extern --strict "git status" [--short(-s)]; git status --shrt` |
``The `extern` command doesn't have flag `strict`.`` | ``The `git
status` command doesn't have flag `shrt`.``, help: ``Did you mean:
`--short`?`` |
| `extern --strict "git status" [--short(-s)]; git status -x` | same
`strict` error | ``The `git status` command doesn't have flag `-x`.`` |
| `extern --strict "git status" [--short(-s)]; git status -s -- --shrt`
| same `strict` error | runs `git status -s -- --shrt` |
| `extern --strict "git status" [--short(-s)]; git status --help` | same
`strict` error | git's help |
| `module g { export extern --strict "git status" [--short(-s)] }; use g
"git status"; git status --shrt` | same `strict` error | ``The `git
status` command doesn't have flag `shrt`.`` |
| `extern "git status" [--short(-s)]; git status --shrt` | git: ``error:
unknown option `shrt'`` | same |
| `extern --strict printf []; printf "%s\|" -10` | same `strict` error |
`-10\|` |
| `extern --strict printf []; let n = 3; let f = "x"; printf "%s\|" -$n
-($n) --($f)` | same `strict` error | `-$n\|-3\|--x\|` |
| `extern printf [--x: string]; printf "%s\|" --x (ls --bogus) hello` |
`--x\|hello\|` | ``The `ls` command doesn't have flag `bogus`.`` |
| `def --wrapped w [--x: string, ...rest] { $rest \| to nuon }; w --x
(ls --bogus) hello` | `[--x, hello]` | ``The `ls` command doesn't have
flag `bogus`.`` |

## User-facing changes (Release notes)

- `extern --strict` makes a flag that the signature doesn't declare a
parse error, with a "Did you mean" hint. `--`, the arguments after it,
and `--help` still reach the external command.
- An unknown flag inside the value of a declared flag, as in `cmd --x
(ls --bogus)`, is now reported for externs and `def --wrapped` commands.
Before, the error was dropped and `--x` reached the command without its
value.

## Additional notes
<!--
Optional.

Examples:
- fixes #123
- closes #456
- related #789

Anything else reviewers should know.
Remove this section if not needed.
-->
<!--
Thanks for contributing to Nushell!

Before submitting, please read the contributing guide:
https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md

This template helps reviewers understand your changes and allows us to
generate high-quality release notes.
-->

## Description

just remove a file accidentally committed
<!--
Explain what this PR does and why.

This section is intentionally flexible:
- Describe the problem
- Explain your approach
- Include technical details if relevant

Good examples:
- "In this PR, I fixed..."
- "In this PR, I added support for..."
- "This change improves X by..."

Write as much or as little as needed for reviewers to understand your
changes.
-->

## User-facing changes (Release notes)
<!--
This section is used (mostly as-is) for https://www.nushell.sh/blog/

Describe how Nushell behavior changes from a user's perspective.
Do NOT describe internal Rust changes here.

Write in a release note style, for example:
- "Added support for..."
- "Fixed an issue where..."
- "Nushell now supports..."
- "Improved performance of..."

If your changes do NOT affect users (internal refactors, cleanup, etc.),
just write:
- "n/a"
- "nan"
- or similar

This tells us the change should not appear in the changelog.

Tips:
- Focus on observable behavior
- Include examples if helpful
- Keep it concise

You can:
- Write a short paragraph (will appear as a bullet point), OR
- Use headings (###) if your change needs more structure

Avoid writing things like:
- "In this PR, I refactored..."
- "This updates internal code..."

You may leave this blank until the PR is ready.
-->

## Additional notes
<!--
Optional.

Examples:
- fixes #123
- closes #456
- related #789

Anything else reviewers should know.
Remove this section if not needed.
-->
hexbinoct and others added 30 commits November 20, 2026 08:26
## Description

On unix, importing a module that imports one of its parents back through
a `..` path never
terminates and nushell dies with a segfault instead of reporting a
circular import (#18731):

```nu
mkdir /tmp/nucrash/c/i
"export module i" | save /tmp/nucrash/c/mod.nu
"use ../mod.nu"   | save /tmp/nucrash/c/i/mod.nu

nu -c "use /tmp/nucrash/c"
# Segmentation fault (core dumped)
```

The parser builds these paths with `std::path::absolute`, which drops
`.` components but keeps
`..` on unix, because a `..` component is not the same thing as the
parent directory once
symlinks are in play. `FileStack`, which is what detects circular
imports, compared those paths
as they were, so `/tmp/nucrash/c/mod.nu` and
`/tmp/nucrash/c/i/../mod.nu` looked like two
different files. Each trip around the cycle appended another `/i/..` to
the path, so the import
never repeated itself, the check never fired, and the parser recursed
until the stack ran out.

That also explains why the symptom is not the same everywhere. Whether
you get a crash depends
on which limit the growing path hits first: on macOS the path stops
resolving before the stack
runs out, so it surfaces as a `module_not_found` naming a path with
several hundred `../i`
components in it, as @pickx saw on the issue. Windows was already fine,
because
`std::path::absolute` resolves `..` there, so the same repro reports
`nu::parser::circular_import`
today. This makes the other platforms behave that way too.

Files on the stack are now identified by their canonical path, which
resolves `..` along with
symlinks pointing at a file that is already being parsed. The path a
file was actually reached
by is kept as it was, since that is what error messages show and what
the files it imports are
resolved against, so nothing else changes. Paths with no file behind
them, such as the virtual
paths of the standard library, fall back to expanding `.` and `..`
textually.

Legitimate `..` imports are unaffected: a module importing a sibling
through `../other/mod.nu`
still resolves and is not reported as circular
(`module_nested_imports_in_dirs` covers this).

Tested on Linux, where the repro now prints a circular import error and
exits 1 instead of
dying on SIGSEGV, and on Windows, where behavior is unchanged. The new
regression test fails
on Linux without the fix and passes with it.

## User-facing changes (Release notes)

Fixed a crash when importing a module that imports one of its parents
back through a `..` path,
for example a `c/i/mod.nu` containing `use ../mod.nu`. Nushell reported
a circular import on
Windows but crashed on other platforms, and now reports the circular
import everywhere.

## Additional notes

fixes #18731
## Description

`from csv`/`from tsv` already expose `--quote`/`-q` and `--escape`/`-e`
flags, wired straight into `csv::ReaderBuilder::quote()`/`.escape()`.
The
write-side siblings `to csv`/`to tsv` only ever exposed
`--separator`/`--noheaders`/`--columns` -- the shared writer helper
never
touched `csv::WriterBuilder::quote()`/`.escape()` at all, even though
the
same `csv` crate's `WriterBuilder` supports both symmetrically to
`ReaderBuilder`. Net effect: you could parse CSV/TSV written with a
custom
quote or escape character, but never produce it, so round-tripping
non-default-quoted data was impossible.

This adds the same `--quote`/`--escape` flags to `to csv` and `to tsv`,
threaded through the shared `to_delimited_data` helper's two
`WriterBuilder` construction sites (the materialized-input and
streaming-
input paths both build a writer independently).

One thing worth calling out for reviewers: `WriterBuilder::escape`
(unlike
`ReaderBuilder`'s) only has an effect once `double_quote` is turned off
--
by default `csv` escapes embedded quotes by doubling them, and the
idiosyncratic single-escape-character style is an alternative to that,
not
an addition on top of it. So `--escape` also disables the default
doubled-quote escaping when set, matching the `csv` crate's own
documented
behavior.

## User-facing changes (Release notes)

- Added `--quote`/`-q` and `--escape`/`-e` flags to `to csv` and `to
tsv`,
matching the existing flags on `from csv`/`from tsv`, so CSV/TSV output
  can use a custom quote or escape character instead of the default `"`
  and doubled-quote escaping.

## Additional notes

n/a
## Description

Implements #14306: `cp` gains a `-l`/`--link` flag matching GNU `cp -l`,
which creates hard links to regular files instead of copying them.
Combined with `-r` it can hard-link a whole directory tree
(`cp -lr source dest`), the use case in the issue.

The flag just exposes `uu_cp`'s existing `CopyMode::Link`.

- `-l` cannot be combined with `-u`: uu_cp ignores `UpdateMode` in
  `CopyMode::Link`, so the combination is rejected with
  `IncompatibleParameters` rather than silently misbehaving.
- When linking, symlinks are followed and their targets are linked,
  matching uutils' `resolve_dereference` (`!recursive || is_link`).
  `-P`/`--no-dereference` links the links themselves, as noted in the
  flag's help text.

Fresh take on #14359, which went stale.

## User-facing changes (Release notes)

`cp` now supports `-l`/`--link` to create hard links to regular files
instead of copying, e.g. `cp -l a.txt b.txt`, or `cp -lr dir_a dir_b` to
recursively link a directory tree (symlinks inside the tree are followed
unless `-P` is given). `-l` cannot be combined with `-u`.

## Additional notes

- closes #14306
- supersedes #14359
- Tests in `crates/nu-command/tests/commands/ucp.rs` check hard-link
  semantics portably (write-through, no inode APIs): `cp -l` on a single
  file, `cp -lr` on a tree with a symlink, `cp -l` over an existing
  destination, `cp -lf` replacing it, and `cp -lu` erroring.
- `linking_does_not_change_source_mode` is a regression test for
  uutils/coreutils#15087 (chmod after hard link used to mutate the
  source's mode); uu_cp 0.13.0 on main has the fix.
- `commands::ucp::test_cp_debug_default` fails on macOS on unmodified
  `main` (uu_cp reports `reflink: yes` on APFS); unrelated to this
  change.
## Description

Follow-up to #18108 for #17448.

`rename --column` could report that a column was missing from the entire
input when only a later record lacked it.

```nu
[{name: Alice} {age: 30}] | rename -c {name: n}
```

The error now labels `rename` with `cannot rename column 'name'`. The
existing highlight on `{age: 30}` now says `row 1 is missing column
'name'`. The error code is `nu::shell::unsupported_input`.

## User-facing changes (Release notes)

`rename --column` now reports the zero-based index of the input row that
is missing a requested column.

## Additional notes

- Added regression coverage for a missing column in a later record and
in a single record, the highlighted record span, and a successful mapped
rename.
- On macOS, seven rename integration tests and three rename unit tests
passed. Formatting, both Clippy checks, Typos, and `git diff --check`
also passed.
## Description

`alias myfind = find -r` was accepted, but `myfind "txt$"` searched for
the literal text `txt$` and returned an empty list with no error. The
alias kept `-r` without a value, so the next word went to `find`'s other
parameters.

Now the first word after such an alias becomes the flag's value, the way
bash, zsh and fish expand aliases. If no word follows, the parser
reports the missing value at the alias name. `--help` and `-h` still
show help, and tab completion after the alias offers the flag's values.

Names in the alias still resolve where it's defined, so `alias ls = ls
-a` still doesn't call itself.

Examples, main against this branch.

These work now:

| Code | main | this branch |
|---|---|---|
| `alias myfind = find -r; ["file.txt" "x"] \| myfind "txt$"` | empty
list | `[file.txt]` |
| `alias myfind = find -r; ["FILE.TXT" "x"] \| myfind "txt$" -i` | empty
list | `[FILE.TXT]` |
| `alias hex = into int --radix; "ff" \| hex 16` | error: Data cannot be
accessed with a cell path | `255` |
| `alias j = to json -i; {a: 1} \| j 4` | error: Extra positional
argument | JSON indented by 4 spaces |

These don't change:

| Code | main | this branch |
|---|---|---|
| `extern "/bin/echo" [--foo: string, ...rest: string]; alias e =
/bin/echo --foo; e bar` | `--foo bar` | `--foo bar` |
| `alias rep = str replace -a; "aaa" \| rep a b` | `bbb` | `bbb` |
| `alias myfind = find -r; [] \| myfind --help` | help for `find` | help
for `find` |
| `alias myfind = find -r; [] \| myfind -h` | help for `find` | help for
`find` |

These are now an error, the same one you get typing the expansion alone:

| Code | main | this branch |
|---|---|---|
| `alias j = to json -i; {a: 1} \| j` | JSON indented by 2 spaces |
error: Missing flag argument |
| `alias myfind = find -r; ["file.txt"] \| myfind` | error: Missing
parameter: search term or --regex | error: Missing flag argument |
| `extern "/bin/echo" [--foo: string, ...rest: string]; alias e =
/bin/echo --foo; e` | `--foo` | error: Missing flag argument |
| `def cmd [--opt: any] { $opt }; alias c = cmd --opt; c` | `true` |
error: Missing flag argument |

## User-facing changes (Release notes)

- An alias that ends with a flag that takes a value now takes the value
from the first word after it. With `alias myfind = find -r`, `myfind
"txt$"` runs `find -r "txt$"`. Before, the flag got no value and the
alias could return wrong results with no error.
- Breaking change. Using such an alias with nothing after it is now a
"Missing flag argument" error, as typing its expansion alone already
was. This includes aliases of commands declared with `extern`.

### Breaking Changes

**1. Using the alias with nothing after it is now a parse error**

```nushell
alias j = to json -i
{a: 1} | j
```
- **Before:** it runs and ignores `-i`, so you get the default 2-space
indent.
- **After:** `MissingFlagParam`, pointing at `j`.

Because it fails at parse time, a `config.nu` or module that uses such
an alias this way anywhere now fails to load, not just that one line.
The memory note for this branch already records this as the intended
break.

**2. The first word after the alias now goes to the flag instead of to
the positional arguments**

```nushell
def cmd [--opt: string, ...rest] { {opt: $opt, rest: $rest} }
alias c = cmd --opt
c x y
```
- **Before:** `{opt: true, rest: [x, y]}`. A string flag got the boolean
`true`.
- **After:** `{opt: x, rest: [y]}`.

If the flag is typed `int`, the same call used to run with `opt: true`.
Now `x` fails the type check as a parse error.

## Additional notes

- Reported in
#19616 (comment).
- The `--help` and `-h` exception applies only to aliases. `find -r
--help` still searches for `--help`.
## Description

Fixes #4274.

`compact` read its column arguments as plain strings, so a nested path
was looked up as one literal key and every row was dropped:

```nu
[{labels: {c: 1}} {labels: {c: null}}] | compact labels.c
# before: []
# after:  [{labels: {c: 1}}]
```

The column arguments are now cell paths, the same change `default` got
in #19058, so `compact` and `default` read columns the same way:

- `compact a.b` follows the nested path; `--empty` applies to the nested
value too (`[{a: {b: ""}} {a: {b: x}}] | compact -e a.b` keeps only the
second row; main dropped both).
- Optional members work: `compact a?.b` drops rows where `a` or `b` is
missing or null.
- A missing column or path still drops the row, as before. Record input
and lists of non-records behave as before.
- A path that starts with a number, like `compact 2024` or `compact 0`,
is an error that asks for a quoted name (`compact "2024"`). Main also
errored on these, with "can't convert int to string"; without the check
a number would parse as a row index and silently drop every record row.
A number later in the path (`compact a.0`) works.
- A plain column name still takes a single record lookup, so there is no
slowdown for the common case (see below).

## User-facing changes (Release notes)

- `compact` accepts cell paths: `compact labels.c` checks the nested
field `c` inside `labels` instead of a column literally named
`labels.c`. To match a column whose name contains a `.` or ends in `?`
or `!`, quote it: `compact "a.b"`, `compact "a?"` (a quoted name or a
string variable still matches the literal key). Unquoted, `a?` is an
optional member and `a!` a case-insensitive one.
- Passing a non-path argument such as a list or record now gives a
parse/type error ("expected cell-path") instead of "Can't convert to
string." A bare number gives "compact needs a column name; quote a
number to match a column, like "2024"".

## Additional notes

- Tests: 11 new tests in `crates/nu-command/tests/commands/compact.rs`
(nested path, nested with `--empty`, missing nested path, several paths,
plain top-level column, quoted dotted name, optional path, a number as
the first member rejected on list rows and on record rows, quoted number
column, number later in the path) and an `examples()` entry. The nested
ones fail on main; the plain-column and quoted-name ones pin behaviour
that did not change. The two rejection tests fail with the new check
commented out.
- Run on my machine: `cargo test -p nu-command --test tests --
commands::compact` (18 passed), `cargo test -p nu-command --lib --
compact` (5 passed), `cargo fmt --all --check` and `cargo clippy -p
nu-command --all-targets -- -D warnings -D clippy::unwrap_used` are
clean.
- Performance (debug builds, 200k rows, median of 7 `timeit` runs):
`compact a` 131 ms on main, 133 ms here; `compact a id s` 178 ms on
main, 181 ms here. The first version of this change walked every column
with `follow_cell_path` and was about 1.5-2x slower, so a single plain
name now goes straight to `record.get` and only real paths walk.
- I used AI assistance (Claude Code) while writing the code, the tests
and this description. I read the diff, understand how it works, and
checked the before/after outputs above myself; the tests listed above
ran on my machine.

---------

Co-authored-by: Cem Ali Polat <[email protected]>
## Description

Fixes #8736. Related to #15218.

Recursive globbing could follow a directory symlink back to an ancestor
and walk the same subtree repeatedly. For example, `ls **/sources.list`
could return the same file through progressively longer paths.

Both glob backends now skip descent when a directory link leads back to
an ancestor and continue searching sibling directories. The link itself
can still match, and separate aliases to the same target still produce
their own paths.

The review follow-up limits cycle checks to patterns containing `**`,
preserving fixed-depth matches such as `ls */up/*.txt`. Both walkers
defer directory identity lookups until they follow a directory link.
Sibling links share the parent lookup and extend the ancestor chain
independently. The `ls` cycle tests for both backends and the `glob`
alias test now run on Windows as well as Unix.

## User-facing changes (Release notes)

Recursive globbing now skips directory symlink cycles and continues
searching other directories.

## Additional notes

### Release benchmarks

I compared Cargo release builds on macOS arm64. The timings are median
wall times and include Nushell startup.

- **One symlink loop.** `ls -a **/sources.list | length` went from 33
matches to one. Legacy glob went from 15.0 to 10.1 ms, and dc-glob went
from 12.5 to 9.3 ms.
- **Two symlink loops.** Both patched backends returned all seven
expected entries in about 10 ms. The upstream runs hit the wall-time or
CPU limit before returning a count.
- **256 links sharing a parent.** Legacy glob took 21.6 ms on upstream,
25.9 ms on the earlier local revision, and 22.1 ms with the shared
lookup. The siblings now reuse one parent chain. Each link still checks
its target against that chain so cycles are pruned and valid aliases can
be traversed independently.
- **256 links under separate parents.** Legacy glob took 20.0 ms on
upstream, 20.1 ms on the previously published PR, and 27.7 ms with this
follow-up. For dc-glob, the times were 15.9, 18.1, and 24.0 ms. All
builds returned 257 matches. Deferring identity lookups avoids opening
an extra identity handle for each directory on link-free Windows walks.
In this fixture, each link has a separate parent, so the walkers
repeatedly resolve the common ancestors. The slowdown was measured on
macOS. The Windows timing impact still needs measurement.
- **Ordinary tree with 4,680 files.** The two-thread `ls` medians were
within about 1.4 ms of upstream. With one Rayon thread, dc-glob took
about 1–2 ms longer across the two patterns tested. The result sets
matched. The source of that smaller timing difference is still
uncertain.

### Compatibility and validation

One mixed-pattern case remains open. With `target/up` pointing back to
`target`, `ls -a */up/**/marker.txt` can lose `target/up/marker.txt`.
This reproduces on both the previously published PR revision and the
follow-up. I'd appreciate your take on whether to handle that case here
or in a separate matcher change.

On macOS, 13,319 workspace tests and 242 doctests passed, along with
formatting, both Clippy checks, Typos, and the WASM check and build.
Native Windows and Linux verification of the follow-up is pending.
## Description

reedline 0.53 dropped its built-in `CurrentDateTime` segment as part of
removing chrono (nushell/reedline#1248), since a clock needs the local
timezone and std cannot provide one.
`DefaultPrompt::default()` now has an empty right prompt.

Nushell falls back to `DefaultPrompt` whenever no right prompt is set,
so under `--no-config-file` or with `$env.config.prompt.right = null`
the clock silently disappeared.
That was missed when bumping reedline.

The fallback now builds its own `DefaultPrompt` with a
`DefaultPromptSegment::Dynamic` clock rendered by jiff, in the same
`%m/%d/%Y %I:%M:%S %p` format reedline used.
The left side stays the working directory.

Sessions with a config are unaffected, since the default right prompt
there is still the Nu closure in `DEFAULT_PROMPTS`.

Tests: `nu-cli` `prompt::` 7/7, including a new
`the_fallback_right_prompt_is_a_clock`.

## User-facing changes (Release notes)

Fixed the right prompt being empty when running without a config file.
It shows the current date and time again.

## Additional notes

Follow-up to the reedline 0.53 bump.

[![AI:W
WRITE](https://img.shields.io/badge/AI-WRITE-grey?style=flat&logoSize=auto&labelColor=13171f)](https://0rwx.com)
## Description

#18734 moved the prompt into `$env.config.prompt`, but the indicator
keys only took a string.
`$env.PROMPT_INDICATOR` and the other indicator variables always took a
closure too, thus migrating an indicator that changes with
`$env.LAST_EXIT_CODE` to the new keys was not possible.

This was never a decision.
The indicators moved first, typed as `String`, before `left` and `right`
joined the PR.
When those followed it turned out config can hold closures after all
(`Hooks` already does), but the indicator keys were never widened.

The indicators now go through the same path as `left` and `right`:
- **config**: the transient keys parse with `update_prompt_source`, the
live keys with an `update_indicator` that differs only by rejecting
`null`, since every edit mode draws an indicator.
- **resolution**: every segment resolves through
`resolve_prompt_source`, `vi_visual` (no variable) through `render`
directly.
- **removed**: `update_optional_string`, `resolve_indicator` and
`resolve_transient_indicator`, which only existed to carry the narrower
type.

A closure that fails to render reports its error and falls back to the
built-in indicator.
`input --reedline` renders the keys the same way.

**Scrutinize**: `crates/nu-cli/src/prompt_update.rs`, the evaluation
order of the segments is kept since any of them may have side effects
now.
**Skim**: the test updates in `crates/nu-protocol/src/config/prompt.rs`,
mostly `"x".into()` to `Value::test_string("x")`.

Tests: `nu-protocol` `config::prompt` 15/15, `nu-cli` `prompt` 28/28
including a new `configured_indicators_accept_closures` that parses and
renders real closures, `nu-command` `reedline_prompt` 1/1.
Clippy with CI flags clean on the touched crates.

## User-facing changes (Release notes)

`$env.config.prompt.indicator`, `vi_insert`, `vi_normal`, `vi_visual`
and `multiline`, plus their `transient` counterparts, now accept a
closure as well as a string, the same as `$env.PROMPT_INDICATOR` and
friends always did.

```nu
$env.config.prompt.indicator = {||
    if $env.LAST_EXIT_CODE == 0 { "> " } else { $"(ansi red)> (ansi reset)" }
}
```

## Additional notes

Follow-up to #18734.

[![AI:W
WRITE](https://img.shields.io/badge/AI-WRITE-grey?style=flat&logoSize=auto&labelColor=13171f)](https://0rwx.com)
## Description

`cargo audit` fails on main since `url` 2.5.8 is flagged by
RUSTSEC-2026-0592, a stack overflow in `Url::origin()` on nested `blob:`
URLs.
`url` 2.5.9 fixes it.
Only `Cargo.lock` changes: `url` 2.5.8 -> 2.5.9, and `form_urlencoded`
1.2.2 -> 1.2.3 comes along with it.

## User-facing changes (Release notes)

n/a
## Description

Bumps reedline from `f1d6069` to `452867e`, which pulls in
nushell/reedline#1297.

`Reedline::terminal_taken_signal()` is additive and not used here yet.

## User-facing changes (Release notes)

n/a

## Additional notes

`cargo check -p nu-cli --locked` passes, the rest is up to CI.
## Description

Now, instead of using hardcoded colors in `std help`, we retrieve them
from `$env.config.color_config`. I did my best to match the keys to
those of `help`, so that they would look somewhat similar when custom
colors have been set.

I also adjusted the padding so that there would be no places with two
lines of padding or no padding in between two sections.

(unrelated) While making this I noticed that the amount of indentation
changes between each function. There are also some differences between
the output of `std help` and `help` in terms of the sections we have and
the way flags and stuff are rendered. While I did get them to match
better, the diff became too large and it wouldn't at all have been
in-scope for this PR, so I decided not to include them.

## User-facing changes (Release notes)

`std help` now honors colors set in `color_config` and has the correct
amount of padding.

## Additional notes

Closes #12109
## Description

Scripts that loop, do arithmetic or call custom commands spent most of
their time on evaluator bookkeeping. This PR cuts most of it:

- Register writes no longer allocate. `PipelineExecutionData` filled its
exit-status list with `vec![None]` for every value. Now only an
external's output adds an entry.
- `binary_op` runs on the operands in their registers and writes the
result in place. Literal loads, variable loads, `span` and `collect_reg`
also write in place.
- The compiler drops the `load-literal` + `drain` pair after an
assignment or `let` used as a statement, since neither instruction did
anything. The drain stays when a jump lands on it, because a value from
another branch still needs draining there.
- The callee's parent stack, which `scope variables` reads, was a clone
of the whole caller stack on every call. Custom command calls now lend
the caller's variables to it and take them back afterwards. Closure
calls copy only the variables. Argument normalization and the
`NU_BACKTRACE` lookup are skipped when they have nothing to do.
- Release builds use `opt-level = 3` instead of `"s"`.

### Before and after

`main` is bc405a2 with its release profile. The scripts come from
[shellarena](https://github.com/navid-m/shellarena), and the 100x rows
run 100 times the iterations. Measured on macOS arm64. Wall time is from
hyperfine with the load average under 3, and instructions retired are
the median of 3 runs.

| script | wall, main | wall, this PR | instructions, main |
instructions, this PR |
|---|---|---|---|---|
| empty script | 11.7 ms | 11.6 ms | 85.7M | 82.6M |
| arith (10k iterations) | 29.6 ms | 18.8 ms | 300.2M | 169.6M |
| strings (10k appends) | 37.8 ms | 25.0 ms | 393.3M | 241.7M |
| func (5k custom command calls) | 27.2 ms | 18.0 ms | 277.0M | 163.5M |
| arith 100x | 1.77 s | 0.73 s | 21,193M | 8,691M |
| strings 100x | 2.54 s | 1.29 s | 29,987M | 15,567M |
| func 100x | 1.47 s | 0.63 s | 17,590M | 7,675M |
| 40k command and closure calls, caller holds three 100 KB strings | 341
ms | 175 ms | 3,687M | 1,868M |

Startup didn't change, so short scripts gain less. `opt-level = 3` alone
cuts instructions by 6-8%, and it grows `nu` from 81.1 MB to 89.9 MB.
Plugins use the same profile, so they grow too. I didn't measure them.

`view ir` for the arith script drops from 58 to 46 instructions. The
first `mut` and the end of the loop:

```
main                                      this PR
 1: store-variable  var 74, %0  # let      1: store-variable  var 74, %0  # let
 2: load-literal    %0, empty              2: load-literal    %0, empty
 3: drain           %0                     3: load-literal    %0, empty
 4: load-literal    %0, empty              4: load-literal    %0, int(1)
 5: load-literal    %0, empty             ...
 6: load-literal    %0, int(1)            42: store-variable  var 74, %0
...                                       43: jump            12  # while
52: store-variable  var 74, %0
53: load-literal    %0, nothing
54: drain           %0
55: jump            18  # while
```

## User-facing changes (Release notes)

- Loops, arithmetic and custom command calls run about twice as fast in
longer scripts.
- `view ir` no longer shows a `load-literal` + `drain` pair after an
assignment or `let` used as a statement.
- Release builds are optimized for speed instead of size, so `nu` is
about 11% larger.

## Additional notes
## Description

In this PR, I added striped rows to `table` and `explore`: every other
data row gets a different background, which makes wide tables easier to
read across.

<img
src="https://cdn.discordapp.com/attachments/615329862395101194/1572010038610894980/CleanShot_2026-11-17_at_09.06.242x.png?ex=6afccfef&is=6afb7e6f&hm=b78f4a5e3bd4c1655bf3f5023dd237c751d711492569690a0b1dc0b7834fe854"
/>

Striping is turned on with `$env.config.table.striped`, and its colors
come from `color_config`, as plain colors like the rest of it:
`row_stripe_bg` for the first row and every other one, `row_stripe_alt`
for the rows between them. When only `row_stripe_bg` is given, as
`"#rrggbb"`, the alternate color is worked out from it: its WCAG 2
relative luminance[^luminance] decides whether white or black is laid
over it, composited at `$env.config.table.stripe_blend` (default
`0.08`), so stripes are slightly lighter on a dark background and
slightly darker on a light one. With neither color set there are no
stripes.

For stripes that follow the terminal, `std/config` gets two commands,
`terminal-background` and `terminal-foreground`, in the way of `std/clip
paste52`: they ask the terminal with `term query` and return the color
as `"#rrggbb"`, or nothing from a terminal that does not report its
colors, or when stdin or stdout is not a terminal. The cursor position
is asked for after the color, so a terminal that does not report its
colors still answers and nothing waits. They are for `config.nu`, once,
when nushell starts; `doc_config.nu` has the lines for it.

In `table`, stripes are painted onto the rendered text between the outer
borders, which leaves the existing color logic untouched, and the
background is put back after any escape sequence in a cell that resets
it. With `table --expand`, only the rows of the outer table are striped.
In `explore`, the row backgrounds are set on the ratatui buffer, under
cells that have no background of their own, and follow the rows while
scrolling.

[^luminance]: The brightness of a color as the eye perceives it, from 0
(black) to 1 (white): each sRGB channel is made linear, then they are
summed as `0.2126 R + 0.7152 G + 0.0722 B`, green counting most. Defined
in [WCAG 2.2](https://www.w3.org/TR/WCAG22/#dfn-relative-luminance). A
background above 0.179, where black and white contrast with it equally,
counts as light.

## User-facing changes (Release notes)

### Striped table rows

`table` and `explore` can now draw every other row on a different
background. It is off by default, and takes a color to make the stripes
from:

```nu
$env.config.table.striped = true
$env.config.color_config.row_stripe_bg = "#282c34"   # the background of your terminal
```

The stripe is a little lighter than a dark `row_stripe_bg` and a little
darker than a light one. `$env.config.table.stripe_blend` sets how
strong it is, from `0.0` to `1.0` (default `0.08`), or set its color
yourself:

```nu
$env.config.color_config.row_stripe_alt = "#393d44"  # the rows between
```

To take `row_stripe_bg` from the terminal when nushell starts:

```nu
use std/config terminal-background
if $nu.is-interactive and $env.config.table.striped {
    let background = terminal-background
    if $background != null { $env.config.color_config.row_stripe_bg = $background }
}
```

`terminal-background` returns nothing from a terminal that does not
report its background, which leaves tables without stripes. Keys typed
before the terminal answers are lost, so this belongs where nushell
starts, not at each prompt. `terminal-foreground` gives the color of the
text the same way.

## Additional notes

- No new dependency, and nothing that differs between platforms: the PR
touches `nu-table`, `nu-explore`, the config and its documentation, and
`std/config`.
- `row_stripe_bg` is painted on its rows, so setting it to the
terminal's background shows on a terminal with a transparent background
or a background image. `row_stripe_alt` alone leaves those rows as they
are.
- Not striped: tables nested in a `table --expand` cell, the markdown
and reStructuredText themes, `table --collapse`, and the transposed
layout of `explore`.
- `terminal-background` and `terminal-foreground` have no automated
test, as they need a terminal. They were tried against a fake terminal
(one that reports colors, as `rgb:` or `rgba:`, with channels of one,
two and four digits and either string terminator; one that does not;
stdout sent to a file; and no terminal at all), not in a real one.
- `term query` has no timeout: where nothing answers either query, as in
a pty with no terminal behind it, the commands wait until Ctrl+C. Over
ssh to Windows they return nothing, as the terminal's color reply does
not get through. `explore` is covered by widget tests, not run on a live
terminal. `typos` was not run locally.
## Description

In `crates/nu-cli/src/menus/help_completions.rs`, `NuHelpCompleter` was
hardcoding `\r\n` line separators and transforming command examples with
`.replace('\n', "\r\n")`. In raw terminal mode, reedline splits
completion descriptions by `\n`, leaving behind unstripped carriage
returns (`\r`) at the end of each line which render as literal `^M`
glyphs in the F1 help menu. Furthermore, multiline examples sourced from
CRLF files preserved `\r\n`.

This PR standardizes `NuHelpCompleter` on `\n` line endings, normalizes
multiline examples via `.replace("\r\n", "\n")`, and adds a
comprehensive test asserting that no command's completion description or
example contains carriage returns.

## User-facing changes (Release notes)

- Fixed literal `^M` characters in the F1 help menu.

## Additional notes

closes #19617

---------

Signed-off-by: Abdul karim mia <[email protected]>
<!--
Thanks for contributing to Nushell!

Before submitting, please read the contributing guide:
https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md

This template helps reviewers understand your changes and allows us to
generate high-quality release notes.
-->

## Description
<!--
Explain what this PR does and why.

This section is intentionally flexible:
- Describe the problem
- Explain your approach
- Include technical details if relevant

Good examples:
- "In this PR, I fixed..."
- "In this PR, I added support for..."
- "This change improves X by..."

Write as much or as little as needed for reviewers to understand your
changes.
-->
~~pure refactor, semantically everything (i hope) should be the same.~~
removed like 50 lines of code duplication (`eval_string_hook`), also
changed `let mut output; match { x => output = ... }` to just `let
output = match { ... } and eventually went to also fix some stuff, see
release notes

## User-facing changes (Release notes)
<!--
This section is used (mostly as-is) for https://www.nushell.sh/blog/

Describe how Nushell behavior changes from a user's perspective.
Do NOT describe internal Rust changes here.

Write in a release note style, for example:
- "Added support for..."
- "Fixed an issue where..."
- "Nushell now supports..."
- "Improved performance of..."

If your changes do NOT affect users (internal refactors, cleanup, etc.),
just write:
- "n/a"
- "nan"
- or similar

This tells us the change should not appear in the changelog.

Tips:
- Focus on observable behavior
- Include examples if helpful
- Keep it concise

You can:
- Write a short paragraph (will appear as a bullet point), OR
- Use headings (###) if your change needs more structure

Avoid writing things like:
- "In this PR, I refactored..."
- "This updates internal code..."

You may leave this blank until the PR is ready.
-->
Did you know that you could cause internal panic with
`$env.config.hooks.command_not_found = "hello"; try { world }`? Well now
you can't. String hooks should now match the behavior of closure ones,
for example they no longer are just printed and then swallowed, so you
can correctly catch them.
The only difference remaining is formatting of errors happening inside
the hook itself - string hooks can only point at their source string in
general, whereas closure hooks point at the exact place the error
occurred.
<!--
## Additional notes
Optional.

Examples:
- fixes #123
- closes #456
- related #789

Anything else reviewers should know.
Remove this section if not needed.
-->

---------

Co-authored-by: Darren Schroeder <[email protected]>
## Description

On macOS, `rm -rf node_modules` can fail with `Directory not empty (os
error 66)` and leave part of the tree behind, while a second `rm -rf`
removes the rest (#19599).

`rm -r` hands each directory to `std::fs::remove_dir_all`. That function
deletes each directory's entries while it reads them, and it stops at
the first error. When one nested directory still has an entry at the
end, the whole removal stops. In the report, 12,399 of 41,026 entries
survived the first run. The path in the error is the argument `rm` was
given, not the directory that was still not empty. `^rm -rf` removes the
same tree on the first run, and zsh's builtin `rm` reads every name in a
directory before deleting any of them.

`rm` now calls `remove_dir_all` again, up to 3 times in all, when it
fails with "Directory not empty". Each call opens every directory again
and continues from what is left. Other errors are returned right away.
Ctrl-C is checked before each retry, so a long retry can be stopped.
`remove_dir_all` keeps its no-follow, fd-relative traversal, so the
retry doesn't reopen the symlink race.

## User-facing changes (Release notes)

Fixed `rm -r` on macOS sometimes stopping partway through a large
directory with "Directory not empty". `rm` now retries the removal
before it reports that error.

## Additional notes

closes #19599
- I couldn't reproduce the failure locally, so there is no before/after
output. The reporter sees it only in their original project, never in a
fresh install from the same lockfile. The unit tests pass a fake removal
function to the retry loop and check it retries on "Directory not
empty", gives up after the last try, returns other errors without
retrying, and stops on Ctrl-C before a retry.
- If the tree is already gone on a retry, that counts as success,
because an earlier call removed part of it.
- The retry isn't gated to macOS. Elsewhere it only runs after a removal
that would have failed anyway.
## Description

Adds `Type::Range` to the input signatures of `math sin/cos/tan`, their
inverse and hyperbolic variants, `math ln`, and `math exp`. The existing
`PipelineData::map` path already handles ranges; only the signature
blocked parsing.

Tests cover `0..10` for sin/exp and `1..10` for ln. `cargo test -p
nu-cmd-extra math::` passes; CodeRabbit reports 0 findings.

## User-facing changes (Release notes)

`math sin`, `math cos`, `math tan`, their inverse and hyperbolic
versions, `math ln`, and `math exp` now accept ranges. For example,
`0..0.1..1 | math sin` works without converting the range to a list
first. Unbounded ranges are still rejected, matching `math sqrt`.

## Additional notes

Fixes #19552.

---------

Signed-off-by: Josue Barros <[email protected]>
Co-authored-by: Josue Barros <[email protected]>
## Description

chrono is unmaintained, so this PR moves nushell's dates to jiff 1.0.
`Value::Date` now holds `nu_protocol::DateTime`, which stores Unix
seconds, nanoseconds and a jiff `Offset`. It is 16 bytes and `Copy`,
like chrono's type, so `Value` stays at 48 bytes. jiff does the
calendar, time zones, parsing and `strftime`. Its range, years -9999 to
9999, is now nushell's.

Output only changes where the release notes say so. `Display`, `Debug`,
RFC 3339, RFC 2822, serde and `format date` print what chrono printed,
localized names included. Input goes through jiff. Date literals, `from
nuon`, `FromStr` and serde use its RFC 3339 reader. `into datetime
--format`, `seq date --input-format` and `from kdl` use its strptime,
plus a small table that keeps chrono's meaning for `%c %x %X %r %v %+
%Z`, nushell's `%J` and `%Q`, and offsets with or without colons. `date
from-human` reads GNU `date` syntax through parse_datetime, after a few
rewrites such as `in 3 days` and `overmorrow`.

chrono-tz, chrono-humanize and human-date-parser leave the dependency
tree, along with the chrono features of rusqlite and calamine. chrono
stays in `Cargo.lock` because rmcp and polars use it. The
chrono-humanize wording and chrono's UTC offset readers are ported under
the MIT license, and each file keeps its notice.

## Before and after

main is 3d8a9cc. Both ran with `TZ=America/New_York` on 2026-11-21 at
13:38. Error cells are cut to the reason.

| Command | main | branch |
|---|---|---|
| `2025-04-18T16:04:32.02649+05:30 \| format date '%N'` | `× invalid
format` | `026490000` |
| `'9999-12-31' \| into datetime \| to nuon` |
`9999-12-31T00:00:00-05:00` | `× datetime parsing failed` |
| `2001-02-03T04:05Z \| to nuon` | `× Command 2001-02-03T04:05Z not
found` | `2001-02-03T04:05:00+00:00` |
| `2016-12-31T23:59:60.5Z \| to nuon` | `2016-12-31T23:59:60.500+00:00`
| `2016-12-31T23:59:59.500+00:00` |
| `'Today at 6pm' \| date from-human \| format date '%H:%M'` | `13:38` |
`18:00` |
| `'today at 6pm blah' \| date from-human \| format date '%H:%M'` |
`13:38` | `× Cannot parse as humanized date` |
| `'next hour' \| date from-human \| format date '%H:%M'` | `× Main
thread panicked.` | `14:38` |
| `'6pm tomorrow' \| date from-human \| format date '%a %H:%M'` | `×
Cannot parse as humanized date` | `Sun 18:00` |
| `'TZ="Europe/Paris" 2025-04-18 04:04' \| date from-human \| to nuon` |
`× Cannot parse as humanized date` | `2025-04-18T04:04:00+02:00` |
| `'2025-03-09 02:00' \| into datetime \| to nuon` |
`2025-03-09T02:00:00-05:00` | `2025-03-09T03:00:00-04:00` |
| `'2025-03-09 02:30' \| into datetime --format '%F %H:%M' \| to nuon` |
`× datetime parsing failed` | `2025-03-09T03:30:00-04:00` |
| `2026-07-01T16:00:00Z \| date to-timezone local \| to nuon` |
`2026-07-01T11:00:00-05:00` | `2026-07-01T12:00:00-04:00` |
| `'2021-02-30 10:00' \| into datetime --format '%F %H:%M' \| to nuon` |
`2026-11-21T10:00:00-05:00` | `× … parameter 'day' for 2021-02 is
invalid, must be in range 1..=28 …` |
| `'-5' \| into datetime --format '%s' \| to nuon` | `× can't convert
input contains invalid characters …` | `1969-12-31T23:59:55+00:00` |
| `'07/20/69' \| into datetime --format '%D' \| to nuon` |
`2069-07-20T00:00:00-04:00` | `1969-07-20T00:00:00-04:00` |
| `'Jan 05 2024' \| into datetime --format '%B %d %Y' \| to nuon` |
`2024-01-05T00:00:00-05:00` | `× … %B failed: unrecognized month name …`
|
| `'2021-03-04 10:00 PST' \| into datetime --format '%F %H:%M %Z' \| to
nuon` | `2021-03-04T10:00:00-05:00` | `× can't convert input contains
invalid characters …` |
| `'2021-03-04 10:00:00 -0800 GMT' \| into datetime --format '%F %T %z
%Z' \| to nuon` | `2021-03-04T10:00:00-08:00` | `× can't convert no
possible date and time matching input …` |
| `2100-07-01T12:00:00Z \| date to-timezone America/New_York \| format
date '%:z'` | `-05:00` | `-04:00` |

## Release notes

- Dates run from year -9999 to 9999, where main reached 262142.
9999-12-31 at UTC is past jiff's last instant, so `'9999-12-31' | into
datetime` is an error, and `from toml` and `from msgpack` keep such a
date as text.
- Date literals and `from nuon` read `2001-02-03T04:05Z`,
`[2024-01-15T10:00]` and offsets like `+0530` and `-08` as dates.
`2024-01-15T1030` is still a string, and a fraction longer than 9 digits
no longer reads.
- Second 60 reads as second 59 everywhere.
- `into datetime --format`, `seq date --input-format` and `from kdl`
follow jiff's strptime. A date that doesn't exist or a weekday that
doesn't match is an error, where main gave today at that time. `%B` and
`%A` take only full names, and `%b` and `%a` only abbreviations.
Two-digit years run from 1969 to 2068. `%s` can be negative, and it wins
over a date in the same text.
- `%Z` reads `UTC`, `GMT` and offsets. Other names such as `PST` are an
error, unless `%z` gives the offset, so `+0900 JST` reads. `UTC` or
`GMT` next to a different offset, as in `-0800 GMT`, is an error.
- `format date` and `$env.config.datetime_format` accept `%N`, `%#z` and
the `^` flag, and `datetime_format` drops `%E` and `%O` the way `format
date` does. `seq date --output-format` prints `+0000` for `%z` instead
of failing.
- `date from-human` reads GNU `date` syntax: `6pm tomorrow`, `today
1430`, `@1744972472`, and a leading `TZ="Europe/Paris"`. `next month`,
`next hour` and `today at 6pm` give the right date, where main misread
them or panicked. Text after a date is an error.
- A local time in a DST gap moves forward by the jump, with or without
`--format`. Wall-clock times get the offset of their own date, not
today's, in records, `date to-timezone local`, `date from-human`, `from
xlsx` and `from ods`.
- Time zones come from the system's tzdata, with a bundled 2026f copy as
the fallback, instead of chrono-tz's 2025b. 13 zones have a different
offset today than on main, and DST rules continue past 2099.
- RFC 3339, RFC 2822 and TOML text round a local mean time offset to the
minute and move the clock with it, so the text names the same instant. A
record's `timezone` keeps its seconds.
- polars rejects a date outside 1677-09-21 to 2262-04-11, where main
stored 1970-01-01 or null. A record `year` too large for 32 bits is an
error, and `to plist` rejects years before 0 instead of crashing.
- For plugin authors, `Value::date` and `Value::as_date` take
`nu_protocol::DateTime`. nu-protocol's `chrono` feature converts to and
from `chrono::DateTime<FixedOffset>`. Older plugins keep working, since
dates cross the wire as the same text.
## Description

This PR changes two experimental options from opt-in to opt-out, so
they're on by default. Both have been opt-in for more than three months.

- `native-clip` arrived in 0.110.1, tracked in #17665. It adds the
built-in `clip copy` and `clip paste` commands, which use the OS
clipboard API instead of OSC 52.
- `cell-path-types` arrived in 0.111.1, tracked in #17683. It infers the
types of cell paths like `$foo.a.b` at parse time, so the parser reports
a type mismatch before the script runs.

`dc-glob` is old enough too, but it stays opt-in for now.

Since both options are now on for everyone, this PR also fixes three
bugs that were reachable only with an option turned on:

- `cell-path-types` typed an optional path like `$list.5?` as the
element type, `int`, so `let x: nothing = $list.5?` failed to parse. Now
a path with any `?` member is typed `oneof<int, nothing>`.
- On Linux, `clip copy` always used the background clipboard thread,
because `$env.config.clip.resident_mode = false` was ignored. The
setting now works, and the old `plugins.clip.NO_RESIDENT` key still
overrides it when set.
- If the OS refused to start that thread, `clip copy` panicked. Now it
returns an error.


## User-facing changes (Release notes)

- The `native-clip` experimental option is now on by default. `clip
copy` and `clip paste` are built-in commands that use the system
clipboard directly. `use std/clip` still adds the OSC 52 commands `clip
copy52` and `clip paste52`.
- This breaks `"text" | clip` on Windows, which used to run `clip.exe`.
Now `clip` is the built-in command and that line fails to parse. Use
`clip copy`, or `^clip` to run `clip.exe`.
- The `cell-path-types` experimental option is now on by default.
Nushell infers the type of cell paths such as `$record.field` while
parsing, so assigning one to a variable of the wrong type fails before
the script runs. Before, the error appeared only when the line ran.
- On Linux, `$env.config.clip.resident_mode = false` now turns off the
background clipboard thread.
- To get the old behavior, turn either option off with `nu
--experimental-options '[native-clip=false, cell-path-types=false]'`, or
set `NU_EXPERIMENTAL_OPTIONS=native-clip=false,cell-path-types=false`
for sessions that load your config.

## Additional notes
## Description

When evaluation fails at parse time, as in `hide $env.bar` or `const x =
[] | first --strict`, `ShellError::wrap` made a `ParseError` whose
message was the whole rendered report, with box drawing, source snippet
and color codes. Everything that shows an error as one line got that
report. The REPL status line printed it with each line break as a
literal `\n`. The language server, `nu --ide-check`, the debug adapter
and `nu check --debug` passed it on as the message.

`wrap` now builds a new `ParseError::ParseTimeEval`. Its message is
still the report, so printed errors don't change, but it also keeps the
evaluation error. The one-line places show that error's headline and
first label. Editors underline the label's span instead of the whole
value. The MCP server gets the evaluation error's own code, message,
help and labels.

## User-facing changes (Release notes)

- The REPL status line no longer crams a whole error report onto one row
for errors from parse-time evaluation, such as `hide $env.bar`. It shows
`✗ Not a constant: Value is not a parse-time constant`.
- The language server, `nu --ide-check`, the debug adapter and `nu check
--debug` show these errors as one line. Editors underline the part that
failed, such as `into int` in `const d = ('abc' | into int)`.
- The MCP server reports these errors with the evaluation error's own
code, message, help and labels.

## Additional notes
## Description

This is phase 4 of the AST to IR call migration, after #18808, #18813,
#18967, #19351 and #19462. Commands now run only from compiled IR, so
`engine::Call` loses its AST variants and the code that handled them
goes too.

Plain `cal` was the last runtime code that built an `ast::Call`, to run
`table --index false`. It now runs `table` through `eval_ir_call`, as
`help` does. The rest is deletion: `CallImpl::AstRef`/`AstBox`,
`eval_call`, `eval_external`, `impl CallExt for ast::Call`, and the AST
branches in `get`, `run`, `run-internal`, known externals and plugin
calls.

The AST evaluator stays, because `explain` and the parser info of
`source`, `source-env` and `run` still use it. Its call arms now return
an error, which fixes two `explain` bugs. `explain` evaluates every
argument, and a keyword's argument can be a call. For `else if` that
call is `if`, whose `run` panics. For `alias x = cmd` it ran `cmd`. Both
now show an error value. An argument that holds a subexpression, like
`(1 + 2)`, now shows its source text and parsed type instead of an
internal debug dump. `explain` doesn't run it, because that would run
its commands.

The AST `has_flag` was the only check that a builtin's switch got a
bool. The parser rejects `ls --all=5`, but `ls --all=$x` with `$x` typed
`any` and set to `5` counted as set. Builtins, const calls and custom
commands now give the error `%$cmd` already gave. A builtin checks when
it reads the switch, so one that never reads it still ignores a bad
value.

## User-facing changes (Release notes)

- `explain` no longer crashes on `else if`, and no longer runs the
command an `alias` points to.
- `explain` shows an argument with a subexpression, like `(1 + 2)`, as
its source text and parsed type.
- Breaking change: a switch given a value that isn't a bool, as in `ls
--all=$x` with `$x` set to `5`, is an error. It used to count as set.

## Additional notes
## Description

Adds a regression test for pipeline signal handling: pressing Ctrl+C
while a pipeline of two external commands is running should interrupt
both of them, and Nushell should carry on with the rest of the script.

The test starts `nu -i` on its own pseudo-terminal, so the externals run
in a foreground process group the way they would in a real terminal.
Both commands trap SIGINT and print a line when they get it. After
Ctrl+C the test expects `producer`, `consumer`, and then `resumed` from
the next statement. Output is read through a separate socket, so
terminal echo can't make the test pass by accident.

To check that it catches the kind of bug described in #6542, I changed
`set_foreground_pid` in `crates/nu-system/src/foreground.rs` so that
every external in a pipeline got its own process group. With that change
the test fails after its 15 second read timeout. With the current code
it passes. I haven't tried it against the older commits mentioned in the
issue.

The test is Unix only (`#[cfg(unix)]`) because it relies on a pty and
process groups.

## User-facing changes (Release notes)

n/a

## Additional notes

Part of #6591. This covers Ctrl+C in a two-command external pipeline.
Other cases from #6542 could follow in separate PRs.
#19645)

## Description

`repl::test_engine::const_switch_rejects_a_value_that_is_not_a_bool`
fails on main (1dc849d), and so does every PR's root test job. #19638
added the test. Two PRs merged a few minutes before it changed what the
test expects, and each of the three passed CI on its own base:

- #19634 turned on `cell-path-types`, so the parser now knows `$r.a` in
`const r = {a: 5}` is an `int`. It rejects `--chars=$r.a` with a type
mismatch and never evaluates the const.
- #19635 moved errors from parse-time evaluation out of
`ParseError::LabeledError` and into the new `ParseError::ParseTimeEval`.

The test covers the check #19638 added to const evaluation, so it needs
an argument the parser can't type. It now passes `($r | get a)`. `get`
returns `any`, so the parser lets it through and the const evaluation
rejects it. The test matches the `CantConvert` inside `ParseTimeEval`,
the same way `builtin_switch_rejects_a_value_that_is_not_a_bool` matches
its error.

## User-facing changes (Release notes)
<!--
This section is used (mostly as-is) for https://www.nushell.sh/blog/

Describe how Nushell behavior changes from a user's perspective.
Do NOT describe internal Rust changes here.

Write in a release note style, for example:
- "Added support for..."
- "Fixed an issue where..."
- "Nushell now supports..."
- "Improved performance of..."

If your changes do NOT affect users (internal refactors, cleanup, etc.),
just write:
- "n/a"
- "nan"
- or similar

This tells us the change should not appear in the changelog.

Tips:
- Focus on observable behavior
- Include examples if helpful
- Keep it concise

You can:
- Write a short paragraph (will appear as a bullet point), OR
- Use headings (###) if your change needs more structure

Avoid writing things like:
- "In this PR, I refactored..."
- "This updates internal code..."

You may leave this blank until the PR is ready.
-->

## Additional notes
<!--
Optional.

Examples:
- fixes #123
- closes #456
- related #789

Anything else reviewers should know.
Remove this section if not needed.
-->
… (#19636)

## Description

Fixes #19584.

On Windows, a script that runs through its file association (for example
a `.nu`, `.py` or `.vbs` file whose extension is in `PATHEXT`) worked as
`.\script.nu` but failed as `./script.nu`:

```
> ./test.nu
'.' is not recognized as an internal or external command,
operable program or batch file.
```

**Cause:** for these scripts `run-external` launches `cmd.exe /D /C
<name>` so Windows applies the file association. The name was passed
exactly as typed, and `cmd.exe` treats `/` as a switch character, so it
read `./test.nu` as the command `.` followed by the switch `/test.nu`.

**Fix:** for file-associated scripts, the name as typed is normalized
before it's handed to `cmd.exe`. The new helper `cmd_script_path`
re-joins the name's path components, which turns every `/` into `\` and
drops redundant `.` components while keeping a leading `.`, e.g.
`./sub/./test.nu` → `.\sub\test.nu`. Only the typed name reaches
cmd.exe, never the cwd or a PATH directory, so spaces or characters like
`&` in those directories can't affect cmd.exe's parsing.

CMD internal commands (`echo`, `assoc`, `start`, …) still receive the
name as typed, so their behaviour is unchanged. `.exe`, `.com`, `.bat`,
`.cmd` and `.ps1` files don't go through this code path.

### Before / after

Tested on Windows 10 Pro 19045 with `.vbs` files, which Windows
associates with WScript by default (`.VBS` is in the default `PATHEXT`).
The test script writes a marker file, so `RAN` means it really executed.

Before (0.116.1 release; `main` at 594dd47 behaves the same):

```
.> .\hello.vbs                     => RAN
.> ./hello.vbs                     => FAILED '.' is not recognized as an internal or external command,
.> ./hello                         => FAILED '.' is not recognized as an internal or external command,
.> ./sub/hello.vbs                 => FAILED '.' is not recognized as an internal or external command,
.> ./sub/./hello.vbs               => FAILED '.' is not recognized as an internal or external command,
.> "./sub dir/hello.vbs"           => RAN
John Doe> .\hello.vbs "a b"        => RAN
John Doe> ./hello.vbs "a b"        => FAILED '.' is not recognized as an internal or external command,
R&D> .\hello.vbs                   => RAN
x&whoami&y> .\hello.vbs            => RAN
^echo cmd-builtin-ok               => cmd-builtin-ok
```

After (this PR):

```
.> .\hello.vbs                     => RAN
.> ./hello.vbs                     => RAN
.> ./hello                         => RAN
.> ./sub/hello.vbs                 => RAN
.> ./sub/./hello.vbs               => RAN
.> "./sub dir/hello.vbs"           => RAN
John Doe> .\hello.vbs "a b"        => RAN
John Doe> ./hello.vbs "a b"        => RAN
R&D> .\hello.vbs                   => RAN
x&whoami&y> .\hello.vbs            => RAN
^echo cmd-builtin-ok               => cmd-builtin-ok
```

### Tests

- New Windows integration tests in
`crates/nu-command/tests/commands/run_external.rs` (`mod
file_association`), using `.vbs` (default WScript association, no
registry change). Each prefix (bare, `^`, `run-external`) × script is
its own rstest case:
- `can_run_file_associated_scripts_with_forward_slashes`: `./hello.vbs`,
`./hello`, `./sub/hello.vbs`, `./sub/./hello.vbs`, `.\sub\hello.vbs` (15
cases)
- `can_run_file_associated_scripts_in_dirs_with_cmd_special_chars`: cwd
`John Doe` / `R&D`, with `.\hello.vbs`, `./hello.vbs`, `.\hello.vbs "a
b"` (18 cases)
- Checked that they catch the bugs: against `main` the 18 forward-slash
cases fail, and against the first version of this PR (resolved path) the
special-chars cases fail.
- Windows-only unit test `cmd_script_path_uses_backslashes` (7 rstest
cases) for the normalization itself.
- Ran locally on Windows:
  - `cargo fmt --all -- --check`
- `cargo clippy -p nu-command --all-targets -- -D warnings -D
clippy::unwrap_used -D clippy::unchecked_time_subtraction`
  - `cargo test -p nu-command --lib run_external` (10 passed)
- `cargo test -p nu-command --test tests -- commands::run_external` (124
passed, 3 ignored Linux-only)

## User-facing changes (Release notes)

Fixed an issue on Windows where running a file-associated script with a
forward-slash path such as `./script.nu` failed with `'.' is not
recognized as an internal or external command`, while `.\script.nu`
worked.

## Additional notes

- Fixes #19584
- Related: #6440, #15611 (running scripts through their file
association)
## Description

`open a.bin b.bin` flattened every file's byte stream into the output,
so each file came out as 8192 byte chunks that had nothing to do with
the content (`[8192, 1808, 8192, 8192, 3616]` for a 10000 and a 20000
byte file), which broke `lines`, `decode` and anything else looking at
the text. when every file stays a byte stream (`--raw` or no `from`
converter) they are now chained into one byte stream like `cat`, read
one after another from a flat list so many files dont nest readers. if
all streams share a type it is kept, otherwise it falls back to
`Unknown`. tables from converters are still flattened together like
before. tests: `open_multiple_files_chains_byte_streams` and
`open_multiple_files_keeps_converter_stream_type`.

## User-facing changes (Release notes)

`open` with several files that stay byte streams now returns one byte
stream, like `cat`, instead of 8 KiB chunks:

- `open a.txt b.txt | str length` gives the combined length, and `|
length` no longer counts chunks
- `open a.txt b.txt | get 0` doesnt work anymore since the result isnt a
list
- like `cat`, a file without a trailing newline runs into the next
file's first line with `lines`

for one value per file use `[a.txt b.txt] | each { open $in }`.

## Additional notes

fixes #10027
## Description

Adds an introductory `tutor for` topic (aliases: `loop`, `loops`,
`while`, `break`, `continue`). Following `tutor conditional`, it groups
loop constructs into a single topic and focuses on `for` vs `each`
rather than serving as a full reference.

## User-facing changes (Release notes)

Added a `tutor for` tutorial covering `for`, `loop`, `while`, `break`,
and `continue`.

## Additional notes

- Part of #18895
## Description

Fixes #11523.

`from xml` kept only local names and dropped `xmlns` declarations, so
`from xml | to xml` lost namespace information:

```nu
'<svg xmlns="http://www.w3.org/2000/svg" width="1"><text xml:space="preserve">a</text></svg>' | from xml | to xml
# before: <svg width="1"><text space="preserve">a</text></svg>
```

This adds a `--namespaces` flag, as suggested in the issue discussion.
With it, names that belong to a prefixed namespace keep their prefix
(`dc:creator`, `xml:space`), and `xmlns` / `xmlns:*` declarations are
added to `attributes` on the element that declares them. Elements in the
default namespace stay unprefixed. The record shape is the same (`tag` /
`attributes` / `content`) and `to xml` needs no change. Without the flag
the output is unchanged.

```nu
'<svg xmlns="http://www.w3.org/2000/svg" width="1"><text xml:space="preserve">a</text></svg>' | from xml --namespaces | to xml
# <svg xmlns="http://www.w3.org/2000/svg" width="1"><text xml:space="preserve">a</text></svg>
```

## User-facing changes (Release notes)

- `from xml` has a new `--namespaces` flag. It keeps namespace prefixes
in tag and attribute names (for example `dc:creator`, `xml:space`) and
adds `xmlns` / `xmlns:<prefix>` keys to `attributes`, so `from xml
--namespaces | to xml` keeps the namespaces of a document. The default
output is unchanged.
- The help text of `from xml` now says `attributes` instead of `attrs`.

## Additional notes

- Tests: unit tests in `crates/nu-command/src/formats/from/xml.rs` and
round-trip tests in `crates/nu-command/tests/format_conversions/xml.rs`.
The flag tests fail on main; the default-output tests pin the unchanged
behaviour. There is also one example for `test_examples`.
- Run on my machine: `cargo fmt --all --check`, `cargo nuclippy`,
`typos`, `cargo test -p nu-command --all-targets` (1016 + 5422 passed)
and the nu-std tests.
- Without the flag the output is byte for byte the same as before on 304
XML files from my system (293 identical, 11 fail to parse the same way
in both).
- Timing (debug build, median of 5, files of 2-3 MB): without the flag
it is within noise of main. With `--namespaces`, a file with a few
namespaces takes about 10-25% longer, and a file with 200 declarations
on the root takes about 3x (0.3 s to 1 s). I did not measure a release
build.
- Known differences with the flag: if several prefixes are bound to the
same namespace, the prefix written back can differ from the original
(same document); declarations are written before the other attributes;
an explicit `xmlns:xml` declaration is not shown because roxmltree does
not expose it.
- I used AI assistance (Claude Code) while writing the code, the tests
and this description. I read the diff, understand how it works, and ran
the checks above myself.

---------

Co-authored-by: Cem Ali Polat <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Co-authored-by: Cem Ali Polat <[email protected]>
…19642)

## Description

`generate completions cargo` declares `-Z: string`, and with that extern
loaded, `cargo -Zscript foo.rs` failed with
`only_last_flag_in_batch_can_take_arg`. `^cargo -Zscript` and `cargo -Z
script` both worked. `make -j8` and `git commit -amf` failed the same
way under their externs. `git commit -amf` is the example in #5923,
which #8808 closed by letting the last flag in a batch take the next
word. The attached form never worked.

A known external now reads short flags the way `getopt` does. When a
flag that takes a value comes before the end of the word, the rest of
the word is its value, and the word goes to the program as written.
Nushell still checks that value against the flag's type, so `-jabc` with
`-j: int` fails like `-j abc` does. `extern --strict` accepts the word
when every flag in it is declared. Nushell commands and `def --wrapped`
keep the old rule.

```nushell
> cargo -Zscript fp_asm.rs        # before
Error: nu::parser::only_last_flag_in_batch_can_take_arg

  × Only the last flag in a short flag batch can take an argument.
   ╭─[source:1:37]
 1 │ source cargo_completions.nu; cargo -Zscript fp_asm.rs | complete | reject stdout
   ·                                     ┬
   ·                                     ╰── only the last flag can take args

> cargo -Zscript fp_asm.rs        # after, on stable cargo
error: the `-Z` flag is only accepted on the nightly channel of Cargo, but this is the `stable` channel
```

## User-facing changes (Release notes)

Commands declared with `extern` accept a short flag with its value
attached, such as `cargo -Zscript`, `make -j8` or `git commit -amf`, and
pass it to the program as written.

## Additional notes

closes #19639

- Values that start with `$` or `(` skip the type check. Inside the
word, `-Z$x` stays literal and `-Z(1 + 2)` becomes `-Z3`, so checking
`$x` or `(1 + 2)` alone would test something the program never gets.
- The last-flag check also had a bug. It compared a byte offset with a
character count, so in `-éjm 5` the `-j` took a value without being
last. It now compares spans.
…`tee` (#19647)

## Description


Since 0.114.0, `try` skips `catch` when it's piped into `ignore`,
`complete`, `save` or `tee` and the error comes from the last command in
its block. `finally` still runs, but it gets the raw error as its input
and parameter, so the first command there that reads either one raises
the error again. The case most likely to bite is a custom command that
ends in a `try`. Call it as `my-command | ignore` and its `catch` never
runs.

#18306 made a command return its error as a value when its stderr goes
to a separate pipe. That lets `ignore --stderr` decide what to do with
the error. All four commands above ask for that separate pipe, and the
last command in a `try` block inherits the redirection of whatever
follows the `try`. So the error turned into a value, passed through
`try` without reaching `catch`, and the next command raised it. Up to
0.117.0, a `;` after the pipeline discarded the error. #19467 stopped
that, so on main the error surfaces.

`try` now raises an error value that reaches the end of its block, or
the end of `catch` before `finally`. The handlers run the same as they
do without the pipe. When only `finally` handles the error, `finally`
gets the error record. Then the error goes on to the next command as a
value, the same as without `finally`, so `ignore --stderr` still
consumes it.


## User-facing changes (Release notes)

- Fixed `try` skipping `catch` when it's piped into `ignore`,
`complete`, `save` or `tee`, including through a custom command that
ends in a `try`. In the same case `finally` now gets the error record
instead of the raw error. This was a regression in 0.114.0.
- `try { ... } catch { 'fallback' } | ignore --stderr` now passes on
`fallback` instead of consuming the error, and `try { exit 3 } | ignore
--stderr` now exits.

## Additional notes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

⤵️ pull merge-conflict Resolve conflicts manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.