通常情况下 shell 变量调用需要加 $,但是 for 的 (()) 中不需要,下面来看一个例子: #!/bin/bash for((i=1;i<=5;i++));do echo "这是第 $i 次调用"; done;