Skip to content

update custom command --wrapped to not always convert to glob - #18372

Merged
fdncred merged 1 commit into
nushell:mainfrom
fdncred:fix_wrapped_returning_glob
Jun 9, 2026
Merged

fdncred merged 1 commit into
nushell:mainfrom
fdncred:fix_wrapped_returning_glob

Conversation

@fdncred

@fdncred fdncred commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

This PR fixes a bug where def --wrapped cmd [...rest] {$rest.0 | describe} was always printing the type as glob. I'm not sure that's too much of a problem but with this PR there should be only 3 returns from cmd above; string, glob, ShellError. This is because --wrapped is specifically intended to pass arguments to externals.

User-facing changes (Release notes)

Fixed a regression where all custom commands with --wrapped where numbers and strings passed to externals as glob now everything is passed as string or glob or creates an error.

Additional notes

closes #18370

@fdncred fdncred added notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes labels Jun 9, 2026
@fdncred
fdncred merged commit 64cb52f into nushell:main Jun 9, 2026
18 checks passed
@fdncred
fdncred deleted the fix_wrapped_returning_glob branch June 9, 2026 12:32
@github-actions github-actions Bot added this to the v0.114.0 milestone Jun 9, 2026
@Skyrocket1653 Skyrocket1653 mentioned this pull request Jun 12, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--wrapped option in custom command parses rest arguments (...rests) as glob instead of of their correct type

1 participant