-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Forward slash / is not transparently translated on Windows, does not work with path completion #2535
Copy link
Copy link
Closed
Labels
category:enhancementNew feature or requestNew feature or requestdeprecated:platform-specificUse a more specific platform:* label instead of this labelUse a more specific platform:* label instead of this labelpolishthis problem makes nu feel unpolishedthis problem makes nu feel unpolished
Description
Describe the bug
Forward slash / is not transparently converted to \ on windows. On windows powershell you can use a / and it's automatically translated to a backslash \. It would be nice if Nushell emulated this behavior as it makes working across windows and unix machines much more ergonomic.
To Reproduce
There seem to be a few corner case behaviors here
cd my/directoryends up with pathC:\path\to\my/directory. cd succeeds but/gets preserved in path. Powershell will cd and transform the forward slash to a backslash.cd my/dir<tab><tab>autocomplete will not complete if there's a forward slash on windows. Powershell completes this and converts it to a backslash../myProgramwill not runmyProgram. This works on powershell.- Probably other ones I haven't noticed yet
Expected behavior
Forward slashes are transparently converted to back slashes on windows (or possibly otherwise follow powershell's behavior if there are corner cases?)
Configuration (please complete the following information):
- OS (e.g. Windows): Windows 10
- Nu version (you can use the
versioncommand to find out): 0.19.0 - Optional features (if any): default clipboard trash
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category:enhancementNew feature or requestNew feature or requestdeprecated:platform-specificUse a more specific platform:* label instead of this labelUse a more specific platform:* label instead of this labelpolishthis problem makes nu feel unpolishedthis problem makes nu feel unpolished