MINGW64条件语法错误,不会影响MINGW32

时间:2017-06-12 08:59:55

标签: bash shell sh git-bash

我遇到以下代码在MINGW32 shell中工作但在MINGW64中无效的问题:

if [[ ! -ne $FILTER ]]; then
    FILTER="--all"
fi

产生以下错误:

./PTCW.sh: line 72: conditional binary operator expected
./PTCW.sh: line 72: syntax error near `$FILTER'
./PTCW.sh: line 72: `if [[ ! -ne $FILTER ]]; then'

我已经寻找解决方案,但没有解释我所看到的

此致

乍得

0 个答案:

没有答案