t A B="c": (q A ("e" + B) ("f" + B))
q R S T:
echo {{R}} {{S}} {{T}}
$> just t "p"
error: Call to unknown function `A`
——▶ .justfile:21:15
│
21 │ t A B="c": (q A ("e" + B) ("f" + B))
│ ^
But it expects A to be a function instead of the Parameter.
Adding parenthesis around A, resolves the problem.
t A B="c": (q (A) ("e" + B) ("f" + B))
q R S T:
echo {{R}} {{S}} {{T}}
$> just t "p"
p ec fc
I am probably missing something why the parenthesis are required, but anyway an improved error message in case a matching parameter exist might be warranted.
I would have expected the following to work
But it expects
A
to be a function instead of the Parameter. Adding parenthesis aroundA
, resolves the problem.I am probably missing something why the parenthesis are required, but anyway an improved error message in case a matching parameter exist might be warranted.