вот что я пытаюсь достичь:
function f1() { return 0 } function f2() { return 0 } if [[ f1 && f2 ]]; then echo "success" else echo "fail" fi