Skip to content

nushell is not compatible with lowercase path on windows #12676

@mokeyish

Description

@mokeyish

Describe the bug

Some software installations seem to change Path into lowercase path, causing this BUG

How to reproduce

  1. Go to RegEditor
  2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
  3. Rename Path as path
  4. Go to nushell, run which which

Expected behavior

Make nushell compatible with lowercase path.

Screenshots

No response

Configuration

key value
version 0.92.2
branch
commit_hash 2a08a18
build_os windows-x86_64
build_target x86_64-pc-windows-msvc
rust_version rustc 1.77.2 (25ef9e3d8 2024-04-09)
rust_channel 1.77.2-x86_64-pc-windows-msvc
cargo_version cargo 1.77.2 (e52e36006 2024-03-26)
build_time 2024-04-10 21:24:37 +00:00
build_rust_channel release
allocator mimalloc
features default, sqlite, trash, which
installed_plugins

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:environmentRelated to the management of environment variables/process stateplatform:windowsIssues which are specific to Windowsstatus: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