标签: bash
if [ (( $year >= $3 )) ] && [ (( $year <= $4 )) ]
错误:
line 11: syntax error near unexpected token `(' line 11: ` if [ (( $year >= $3 )) ] && [ (( $year <= $4 )) ] '
$3和$4是数字,year也是本地变量和数字。
$3
$4
year
问题出在这里?我无法得到它。