Posted in bash

Forget About return, love echo

in bash functions. To return a value, use echo $val and take its output at the caller side.

Returns suck!!

Leave a comment