Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
知道如何将特殊字符打开和关闭大括号 () 存储在 unix shell 脚本中使用的变量中
确保在括号周围使用引号:
$ x='()' $ echo $x ()
这对我有用
#!/bin/sh asdf="()" echo $asdf