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

redefine 失败 #23

Closed
molixiaoge opened this issue Dec 29, 2020 · 2 comments
Closed

redefine 失败 #23

molixiaoge opened this issue Dec 29, 2020 · 2 comments

Comments

@molixiaoge
Copy link

生成redefine语句的时候失败,截图如下

image

WangJi92 added a commit that referenced this issue Dec 30, 2020
WangJi92 added a commit that referenced this issue Dec 30, 2020
@WangJi92
Copy link
Owner

最初使用 replace("$","\$") mac 没有问题 windows有问题

https://blog.csdn.net/xrt95050/article/details/6651571 (替换$ 为 $ )要把 $ 替换成 $ ,则要使用 \\\& 来替换,因为一个 \ 要使用 \\ 来进行替换,而一个 $ 要使用 \$ 来进行替换,因 \ 与 $ 在作为替换内容时都属于特殊字符:$ 字符表示反向引用组,而 \ 字符又是用来转义 $ 字符的.

为什么要转义 shell 脚本执行的时候这个字符特殊不能直接使用
当前类完整的路径中含有内部类$ 字符 ,不能再shell 中被解析要进行转义。

@WangJi92
Copy link
Owner

下个版本升级 改造掉

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

2 participants