google / google/kati

Escaped percent char is mishandled in patsubst arguments

Open
#234 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1k
Forks
132
Avg merge
11m
Merged PRs (30d)
1

Description

According to https://www.gnu.org/software/make/manual/make.html#Text-Functions,
"‘%’ characters in patsubst function invocations can be quoted with preceding backslashes (‘\’). "
Kati does not do that:
```
$ cat /tmp/a.mk
$(error $(patsubst %,\%/%,a b c))
$ make -f /tmp/a.mk
/tmp/a.mk:1: *** %/a %/b %/c. Stop.
$ ckati -f /tmp/a.mk
/tmp/a.mk:1: *** \a/% \b/% \c/%.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.