bash: function place result in variables