在一些rvm安装脚本中,偶然发现了∴运算符,但似乎找不到关于它的信息?是否有相关文档可以参考?
∴ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
∴ rvm update
∴ gem update rvm && rvm-install
cat <<∴
Very unlikely to find an accidental ∴
at the beginning of a line in a here
document. But it would tend to
confuse a reader.
∴
它并没有实际功能——这似乎是Wayne Seguin在他的bash提示符中使用的字符。默认情况下,许多人会看到:~
。
这是 Unicode 0x2234 字符,意思是“因此”。这绝对不是一个 bash 运算符。
我猜你在 http://rvm.beginrescueend.com/rvm/install/ 上找到了这个字符,并认为它属于命令行。也许他们只是在网站上使用它来表示 shell(通常用 # 或 $ 表示)。