比较'if'中的数字语法(bash)

时间:2014-11-04 11:09:04

标签: bash

if [ (( $year >= $3 )) ] && [ ((  $year <= $4 )) ]

错误:

line 11: syntax error near unexpected token `('
line 11: `      if [ (( $year >= $3 )) ] && [ ((  $year <= $4 )) ] '

$3$4是数字,year也是本地变量和数字。

问题出在这里?我无法得到它。

0 个答案:

没有答案