-
Notifications
You must be signed in to change notification settings - Fork 2.1k
path relative-to does not work as expected with case-insensitive paths on case-insensitive filesystems #16205
Copy link
Copy link
Closed
Labels
A:file-systemRelated to commands and core nushell behavior around the file systemRelated to commands and core nushell behavior around the file systemstatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look
Milestone
Description
Describe the bug
$ "/etc" | path relative-to "/Etc"
Error: nu::shell::cant_convert
× Can't convert to prefix not found.
╭─[entry #8:1:1]
1 │ "/etc" | path relative-to "/Etc"
· ───┬──
· ╰── can't convert string to prefix not found
╰────How to reproduce
- Run that above command on MacOS or any case-insensitive filesystem
Expected behavior
An empty string, or for "/etc/a" | path relative-to "/etc", "a"
Configuration
| column0 | column1 |
|---|---|
| version | 0.105.1 |
| major | 0 |
| minor | 105 |
| patch | 1 |
| branch | |
| commit_hash | |
| build_os | macos-aarch64 |
| build_target | aarch64-apple-darwin |
| rust_version | rustc 1.87.0 (17067e9ac 2025-05-09) (built from a source tarball) |
| cargo_version | cargo 1.87.0 (99624be96 2025-05-06) |
| build_time | 1980-01-01 00:00:00 +00:00 |
| build_rust_channel | release |
| allocator | standard |
| features | default, sqlite, trash |
| installed_plugins |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:file-systemRelated to commands and core nushell behavior around the file systemRelated to commands and core nushell behavior around the file systemstatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look