>>>>> On Thu, 19 May 2016, Mart Raudsepp wrote: >> Ulrich Mueller writes: >> > The EAPI 6 method would be to use "|| die -n". Then the caller >> > either call "eawk" if the function should die automatically, or >> > "nonfatal eawk" if it should return with an error status. > Don't you possibly need a || return as well in there if it isn't the > last things in the function? Yes, of course. "|| die -n || return" if you want the function to return at that point, if it was called under nonfatal. > https://blogs.gentoo.org/mgorny/2015/11/13/the-ultimate-guide-to-eapi-6 Note that the ${?} in the code example there is redundant. Ulrich