Skip to content

Conversation

@RobbingDaHood
Copy link
Contributor

Before:

/tmp/nushell_experiments> do { $env.config.table.mode = none; ls }
Error:
  × External command calls must be explicit in assignments
   ╭─[entry #37:1:31]
 1 │ do { $env.config.table.mode = none; ls }
   ·                               ──┬─
   ·                                 ╰── add a caret (^) before the command name if you intended to run and capture its output
   ╰────
  help: the parsing of assignments was changed in 0.97.0, and this would have previously been treated as a string. Alternatively, quote the string with single or double quotes to avoid it
        being interpreted as a command name. This restriction may be removed in a future release.

After:

/tmp/nushell_experiments> do { $env.config.table.mode = "none"; ls | table }
 #         name          type    size        modified
 0   2024-12-19 Report   dir    4.0 KiB   28 minutes ago

@hustcer
Copy link
Contributor

hustcer commented Dec 18, 2024

Good catch, Thanks

@hustcer hustcer merged commit ec9fac2 into nushell:main Dec 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants