Skip to content

Nu adds uneceseray quotes to ints, giving type errors #5472

@FilipAndersson245

Description

@FilipAndersson245

Describe the bug

Nu seems to add quotes to script file inputs when not necessary, making incorrect typings.

the following script does not execute.

# foo.nu
def main [a: int] {}

How to reproduce

  1. Have a scriptfile with a type limited parameter. example can be seen above.
  2. Try to execute the script nu foo.nu 5

Expected behavior

It should not give error upon running.

Screenshots

image
image

Configuration

key value
version 0.62.0
branch master
tag
short_commit 1cb449b
commit_hash 1cb449b
commit_date 2022-05-07 12:33:33 +00:00
build_os windows-x86_64
rust_version rustc 1.60.0 (7737e0b5c 2022-04-04)
rust_channel stable-x86_64-pc-windows-msvc
cargo_version cargo 1.60.0 (d1fd9fe2c 2022-03-01)
pkg_version 0.62.0
build_time 2022-05-07 16:06:29 +02:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins gstat

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions