Bahex

Results 41 comments of Bahex

Directly using `nu_parser::{parse, flatten_block}` would probably be enough to check for garbage. Though something like `--reject-garbage` could be used in `std/help` too

It's soooo good :heart: Can we add highlighting to the `help aliases` text too? ![image](https://github.com/user-attachments/assets/661c7015-7d46-4c05-96f4-4b4f74a1b696) ![image](https://github.com/user-attachments/assets/e0cc543c-3c5b-4fa2-86f6-cf58743cb291)

Simply wrapping the command in a closure, without even calling it throws the error: ```nushell {|| all-json-path } ``` There might be an issue with the variable capture logic

@frankrefischer while it doesn't solve the variable scoping problem in this issue, `recurse` command introduced in #15840 might cover your use case.

We do have an `Expr::GlobInterpolation` variant, and it actually works... in the specific circumstances where the - command is an external - the bare word interpolation in question doesn't start...

Extra context: - Running as a login shell means the shell process is started with it's `argv[0]` ~set to~ _prepended with_ `-`, e.g. `-/usr/bin/sh`. This can be simulated using the...

Since 0.98.0 (#13785), it's possible to have something like this in `$env.config.hooks.display_output` ```nushell metadata access {|meta| match $meta.content_type? { "application/x-nuscript" | "application/x-nuon" | "text/x-nushell" => { nu-highlight }, "application/json" =>...

This seems to be solved. We can probably add a cookbook entry and close this issue. For anyone who finds this issue before the cookbook entry, here's an example. ```nushell...