Bash Scripting - Functions
In bash scripting, what is the main difference between
return and echo inside a function?return and echo inside a function?return in bash functionsreturn command sends an exit status (a number) from the function to the caller.echo in bash functionsecho command prints text to the terminal or standard output, not a status code.return sends a status code, echo outputs text to the terminal -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions