linux bug

在$取值的时候,括号里面只需要跟变量即可(变量可自行进行计算),不需要对括号内进行运算的变量在进行取值操作ss
syntax error :operand expected(error)遇到这个错误
( ( ) ) (())里面不能再有 操作
#!/bin/bash
read $1
b= 1 a = 1 a= ((b%2))
if [ $a=0 ]
echo “偶数”

猜你喜欢

转载自blog.csdn.net/he1234555/article/details/102988573
bug