Return a single value from a shell script function ... $r contains t or f but also the output of the ls command. I may write ls -1 a* >/dev/null ...
stackoverflow.com