Replaced 'echo "${foo}" | bar' with 'bar <<< "${foo}"'.