#!/bin/zsh -e

function fun1() {
    { false && true }
}

function fun2() {
    false && true
}

echo aaa: $?
false && true
echo bbb: $?
fun1
echo ccc: $?
fun2
echo ddd: $?
