Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot escape vertical bar ('|') in file paths #2488

Open
stomah opened this issue Sep 1, 2024 · 0 comments
Open

Cannot escape vertical bar ('|') in file paths #2488

stomah opened this issue Sep 1, 2024 · 0 comments

Comments

@stomah
Copy link

stomah commented Sep 1, 2024

ninja 1.12.1

rule touch
  command = touch $out
build a$|b: touch
ninja: error: build.ninja:3: bad $-escape (literal $ must be written as $$)
build a$|b: touch
       ^ near here

If unescaped, ninja interprets it as an implicit output.

There should also probably be a way to include any bytes in file paths (even newlines, other control characters and invalid UTF-8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant