just
just copied to clipboard
Feature request: Add support for trailing path (`/`) operator
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/
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.