Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: nushell spread operator #1777

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

deas
Copy link

@deas deas commented Sep 7, 2024

Summary

With nushell 0.94.2 I get the following error:

$ asdf plugin list
Error: nu::shell::cannot_pass_list_to_external

  × Lists are not automatically spread when calling external commands
     ╭─[/home/deas/.asdf/asdf.nu:110:27]
 109 │ 
 110 │         ^asdf plugin list $flags | lines | parse -r $template | str trim
     ·                           ───┬──
     ·                              ╰── Spread operator (...) is necessary to spread lists
 111 │     }
     ╰────
  help: Either convert the list to a string or use the spread operator, like so: ...$flags

This change fixes that for me.

@deas deas requested a review from a team as a code owner September 7, 2024 07:40
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.

1 participant