bash shell script function return value