Skip to content

Commit

Permalink
Add note to readme about quoting paths on Windows (#2166)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Jun 15, 2024
1 parent 197e100 commit 1c3c1dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3647,6 +3647,17 @@ Node.js `package.json` files:
export PATH := "./node_modules/.bin:" + env_var('PATH')
```

### Paths on Windows

On Windows, functions that return paths will return `\`-separated paths. When
not using PowerShell or `cmd.exe` these paths should be quoted to prevent the
`\`s from being intepreted as character escapes:

```just
ls:
echo '{{absolute_path(".")}}'
```

### Alternatives and Prior Art

There is no shortage of command runners! Some more or less similar alternatives
Expand Down

0 comments on commit 1c3c1dd

Please sign in to comment.