casey / casey/just

Feature request: Add support for trailing path (`/`) operator

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

Description

Currently leading path operators are [supported](https://just.systems/man/en/expressions-and-substitutions.html?highlight=join#joining-paths):
```console
$ bat Justfile

foo := / "b"

$ just --evaluate foo
/b
```

However many tools treat a trailing slash as a significant value (such as `scp`) meaning
`/b` is interpreted differently than `/b/`,

Path operator should be supported as the last identifier for an assignment:

```console
$ bat Justfile

foo := / "b" /

$ just --evaluate foo
/b/
```

Contributor guide

Open the contributing guide

Research direction

Read the expressions and substitutions documentation linked in the issue, then reproduce the examples with a Justfile and `just --evaluate`. Trace how the leading `/` path operator is parsed and evaluated, and confirm that a trailing operator produces `/b/` while existing leading-path behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.