bash shell script function with arguments