#!/bin/bash

set -e
set -u

fail()
{
    set -e
    echo A2.1
    gcc
    echo A2.2
    return 22
}

sta=0
echo "A"
# fail || sta=1
fail &
wait
echo "B: $sta"

echo "Fin."


#---fin------------------------------------------------------------------------
