r9258: return is only supported in function, not in plain shell scripts