Skip to content

Escaped percent char is mishandled in patsubst arguments #234

Description

@asmundak

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/%.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions