深度终端自定义命令转义错误
Tofloor
poster avatar
155******38
deepin
2017-09-12 00:23
Author
在深度终端里面,添加自己常用的清理命令会自动转义,导致执行错误。
  1. find / -name *.log -exec rm {} \;
Copy the Code
会自动转义成
  1. find / -name *.log -exec rm {} \\;
Copy the Code
自定义命令吧\自动转义了,导致命令执行错误。自定义命令里面用户写的东西应该原样输出到屏幕。感觉深度做了多余的事。
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-09-12 00:38
#1
Reply View the author
avatar
wangyong
deepin
2017-09-12 00:48
#2
转义是没有办法的
Reply View the author
avatar
xiaoxiao987
deepin
2017-09-13 17:17
#3
https://bbs.deepin.org/post/145374
转义是没有办法的

这个问题我也发现在了。比如我的密码里面带有特殊符号也会出现错误。导致密码不对。
比如 mysql 自动备份时会把密码写在命令行里面就有可能出现这情况了。
Reply View the author
avatar
wangyong
deepin
2017-09-13 18:43
#4
xiaoxiao987 发表于 2017-9-13 09:17
这个问题我也发现在了。比如我的密码里面带有特殊符号也会出现错误。导致密码不对。
比如 mysql 自动备份 ...

密码不要用 { } 这两个字符,tcl转义占用字符,其他的都可以用
Reply View the author