照原样,下面的代码无效,因为不能像这样使用方括号。如果我们删除它们,它将运行正常,并输出:
true
true
代码:
#!/usr/bin/fish
if ( false ; and true ) ; or true
echo "true"
else
echo "false"
end
if false ; and ( true ; or true )
echo "true"
else
echo "false"
end
如何获得括号中指示的功能?
所需的输出:
true
false
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句