casey / casey/just

Setting to always use `/` separate paths on windows

Open
#1,839 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
35.8k
Forks
846
Avg merge
27m
Merged PRs (30d)
3

Description

Functions like `invocation_directory()` will return a `\`-separated path on windows, and functions like `join` will join path components with `/` on windows. This causes problems when using bash as the shell, since `\` will be interpreted as escape sequences.

We can't change this in a backwards compatible way, so we could introduce a setting, something like `set slash-paths` or something, which always uses `/` in paths and paths functions.

This setting would also make `invocation_directory()` not depend on cygpath on Windows.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.