title: Bash equivalent for PowerShell's Write-Host (write to terminal but don't pipe to stdout)
body: <p>In PowerShell I can do this:</p>
  
  <pre><code>function Get-Foo()
  {
     Write-Host "Calculating result..."
     return 42
  }
  
  $x = Get-Foo
  Write-Host "The answer is $x" # output: The answer is 42
  </code></pre>
  
  <p>So <code>Calculating result..</code> is output to the console, but it's not present in the pipeline so I can just take the method's "return value" and it works</p>
  
  <p>However in bash I don't have <code>Write-Host</code> and something like this won't work:</p>
  
  <pre><code>function getfoo {
     echo "Calculating result..."
     echo "42"
  }
  
  x=$(getfoo)
  echo $x # output will include "Calculating result..."
  </code></pre>
  
  <p>I realize I can save to a file and print after, just wondering if there's a more elegant alternative</p>