我遇到以下代码在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'
我已经寻找解决方案,但没有解释我所看到的
此致
乍得