Linux Ubuntu
https://imgur.com/0Qbop49
可以解释一下
Backslashes that quote ‘%’ characters or other backslashes are removed from
the pattern before it is compared file names or has a stem substituted into it.
Backslashes that are not in danger of quoting '%' characters go unmolested.
看不懂这两段话真正的含意,反斜线引用%或其他反斜线会在档名比较或stem替代之前
移除? stem是什么??
既然引用其他反斜线的反斜线会被移除,为什么又说反斜线没有参与到%的又不会被污染(
不会被移除?
所以结论是 the\%weird\\%pattern\\ -> the%weird\%pattern\\?
新增刚刚的测试
PPP := $(patsubst aasdfBA.c\\\\,aasdfBC.c\\\\, aasdfBA.c\\\\)
PPP 会是aasdfBC.c\\ , A变成C了
但是如果只有PPP := $(patsubst aasdfBA.c\\,aasdfBC.c\\, aasdfBA.c\\\\)
PPP 不变动 还是aasdfBA.c\\ 所以就算没有在%的前面的反斜线还是会被跳脱啊???
谢谢