title: The fish shell and executing programs from bash through `function`
body: <p>I'm currently trying to run the
  <a href="https://atom.io/" rel="noreferrer">atom editor</a>
  <em>in the <code>bash</code> shell</em>, <em>from the <code>fish</code> shell</em>. It's important that I run <code>atom</code> in <code>bash</code> because of how ide-haskell handles <code>ghc-mod</code> path resolution, and a few other standardization issues.</p>
  
  <p>Here is how I was going at it:</p>
  
  <pre><code>#~/.config/fish/config.fish
  
  function start-atom
    bash $HOME/lib/atom/bin/Atom/atom $argv
  end
  </code></pre>
  
  <p>However, when I try running <code>start-atom</code> from <code>fish</code>, I get the following error:</p>
  
  <pre><code>/home/athan/lib/atom/bin/Atom/atom: /home/athan/lib/atom/bin/Atom/atom: cannot execute binary file
  </code></pre>
  
  <p>Even though I know this file is correct and executable. Any ideas? Thank you!</p>