just icon indicating copy to clipboard operation
just copied to clipboard

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

Open mkatychev opened this issue 7 months ago • 1 comments

Currently leading path operators are supported:

$ 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:

$ bat Justfile

foo := / "b" /

$ just --evaluate foo
/b/

mkatychev avatar May 02 '25 20:05 mkatychev

Hmm, that's pretty interesting. I'm definitely open to this. My qualms are that it complicates the grammar for a likely obscure feature, and also might confuse people into thinking that it's a regex. (like Perl /some-regex$/) But I think those are pretty minor issues.

casey avatar May 04 '25 19:05 casey