Skip to content

Commit c6ac35e

Browse files
committed
backends/ninja: fix escaping rules
Fixes: #136
1 parent 25c7a08 commit c6ac35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backends/ninja/ninja.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ std::string escape(const std::string & str, const bool & quote = false) {
111111
std::string new_s{};
112112
bool needs_quote = false;
113113
for (const auto & s : str) {
114-
if (s == ' ') {
114+
if (s == ' ' || s == '$') {
115115
new_s.push_back('$');
116116
new_s.push_back(s);
117117
needs_quote = true;

0 commit comments

Comments
 (0)