相关疑难解决方法(0)

在 bash 中,美元符号后跟方括号 $[...] 是什么意思?

似乎$[expr]执行算术扩展就像$((expr)). 但是我$[在 bash 手册中找不到任何提及。此命令没有给出任何结果:

gunzip -c /usr/share/man/man1/bash.1.gz | grep -E '\$\['
Run Code Online (Sandbox Code Playgroud)

这个运算符是什么,它的行为在任何地方都标准化了?

我的 bash 版本:GNU bash,版本 3.2.51(1)-release (x86_64-apple-darwin13)

bash arithmetic

42
推荐指数
2
解决办法
5777
查看次数

标签 统计

arithmetic ×1

bash ×1