Skip to content

64-bit hex numbers are not supported for use by the fmt command #14521

@dspvvy

Description

@dspvvy

Describe the bug

64-bit entered hex values are not considered as numbers, hence error 0xffffffffffffffef | fmt is neither a Nushell built-in or a known external command

How to reproduce

  1. run -17 | fmt to have output -> | lowerhex │ 0xffffffffffffffef
  2. copy the output and run back 0xffffffffffffffef | fmt
  3. Catch error " 0xffffffffffffffef is neither a Nushell built-in or a known external command"
  4. Remove last bit and try again -> 0xffffffffffffffe | fmt
  5. get normal working -> | display │ 1152921504606846974

Expected behavior

command 0xffffffffffffffef | fmt should have output -> | display | -17

Configuration

key value
version 0.100.0
major 0
minor 100
patch 0
branch
commit_hash 30f98f7
build_os windows-x86_64
build_target x86_64-pc-windows-msvc
rust_version rustc 1.80.1 (3f5fd8dd4 2024-08-06)
rust_channel 1.80.1-x86_64-pc-windows-msvc
cargo_version cargo 1.80.1 (376290515 2024-07-16)
build_time 2024-11-13 03:41:33 +00:00
build_rust_channel release
allocator mimalloc
features default, sqlite, trash
installed_plugins

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-triageAn issue that hasn't had any proper look

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions