echo 'echo ${^}
echo line2' >sourced1
. ./sourced1
echo Ok1:$?

echo "echo '" >sourced1
. ./sourced1
echo Ok2:$?

rm sourced1