calculate bash arithmetic expansion function terminal output