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
One of the features we added with 0.60 is to be able to run scripts against values the user passes, including support for the types that Nushell allows. This lets you run something like this:
def main [x: int] {
$x + 10
}
With:
nu myscript 100
Recent Nushell versions currently wrap the 100 in quotes, which breaks the the support.
Bisect points to:
Date: Sun May 1 03:23:05 2022 +0900
Fix quoting for command line args (#5384)
* Fix quoting for command line args
* Replace custom quoting with escape_quote_string
* Use raw string for now
How to reproduce
See above
Expected behavior
We should not wrap quotes around everything and lose the original type information. Quotes should only wrap around values that would otherwise be invalid without them.
Activity