[dev] Re: 9base mk doesn't work with subscripts?

From: Anthony Martin <ality_AT_pbrane.org>
Date: Sun, 24 Nov 2019 15:49:10 -0800

Marc Chantreux <eiro_AT_phear.org> once said:
> [...]
>
> pub/%.html: %.md template
> mkpage $prereq(1) > $target
>
> but when building index.html from index.md, i got
>
> mkpage index.md template(1) > $target
>
> [...]
>
> * is this a known bug?

It's a bug but it only affects the way mk prints
recipes. The actual recipe executes how you would
expect it to. To see this, add an echo $prereq(1)
to your recipe and check the output.

The relevant code is in mk/shprint.c. It only
handles simple variables. I thought I fixed this
years ago but I can't seem to find the patch.

Cheers,
  Anthony
Received on Mon Nov 25 2019 - 00:49:10 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 25 2019 - 02:12:08 CET