Is it because "as written" the example is trying to echo the return code?