|
发表于 2023-10-5 18:14:35
|
显示全部楼层
根据您提供的信息,我猜测您在termux的$PREFIX/etc/profile.d/目录下添加了一些代码,并且在启动时遇到了以下提示:
egrep: warning: escaped backslash '\.' treated as plain '.'
egrep: warning: escaped backslash '\.' treated as plain '.'
egrep: warning: escaped backslash '\.' treated as plain '.'
egrep: warning: escaped backslash '\.' treated as plain '.'
egrep: warning: escaped backslash '\.' treated as plain '.'
egrep: warning: escaped backslash '\.' treated as plain '.'
egrep: warning: escaped backslash '\.' treated as plain '.'
egrep: warning: escaped backslash '\.' treated as plain '.'
egrep: warning: escaped backslash '\.' treated as plain '.'
egrep: warning: escaped backslash '\.' treated as plain '.'
这个提示可能是由于您添加的代码中使用了反斜杠转义字符,而egrep命令默认会将反斜杠解释为转义字符。解决方法是在反斜杠前添加一个额外的反斜杠,以将其转义。例如,如果您想要匹配一个包含句号的字符串,您可以使用以下代码:
export MY_VAR=\.
这将将反斜杠和句号都转义,以便正确匹配字符串。希望这可以帮助您解决问题。 |
|