Note the 'exec's strings using single quotes. The results in $(basename ...) in this example not being executed in the job.
See this code in do_job:
for phase in phases:
assert len(phase["exec"]) > 0, "Empty job phase"
# TODO:XXX To double-quote or single-quote? Bash has already
# removed the quotes for us. I think we want to single quote.
# Is this a "you can't know" question? Lacking info, I think
# we want to single quote.
phase["exec"] = argv2line(phase["exec"])
Running this job in mantash:
Resulted in this job json:
Note the 'exec's strings using single quotes. The results in
$(basename ...)
in this example not being executed in the job.See this code in do_job: