You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--wrapped option in custom command parses rest arguments (...rests) as glob instead of of their correct type #18370
I have done a basic search of the issue tracker to find any existing issues that are similar.
I have checked that my version is at least the latest stable release available via my installation method.
Describe the bug
The (--wrapped) option in custom command is parsing all the rest parameters (...rests) as glob instead of of their correct type. For example bare strings are being parsed as glob, and same with numbers, bools, paths. So If I check their type using describe, it says those are globs. Also custom commands are not accepting closures either and throws error. However it does not happen with quoted strings(any type of quotation), lists or records. This is occurring since I have updated my nushell to latest version: 0.113.1.
Note: This is only an issue in version 0.113.1 and 0.113.0. Things work as expected in 0.112.2 and versions before that.
I'm expecting nushell to show proper types of custom command arguments if --wrapped is used when defining the command. For example based on the terminal output I provided I should have got "string" for demo kanata, "int" for demo 8 and "closure" for demo { print ok }.
Activity
update custom command `--wrapped` to not always convert to glob (#18372)