title: How to pass arguments to /bin/bash?
body: <p>In my terminal, I do
  <code>$ myprogram myfile.ext</code>.</p>
  <p>I want to be able to do the same via the command <code>/bin/bash</code>, but it is not working.</p>
  <p>I tried</p>
  <pre><code>$ /bin/bash -c -l myprogram myfile.ext
  </code></pre>
  <p>but it is not working. It seems that <code>my program</code> is launched but without my <code>file.ext</code> as an option (as an input file)</p>
  <p>Does anyone has a clue on how to do that?</p>
  <hr />
  <h2>Why I ask this question</h2>
  <p>I want to launch <code>myprogram</code> via <code>NSTask</code> in an a program I am writing for <code>OSX</code>, with the <code>cocoa</code> framework. If I simply ask <code>NSTask</code> to launch my program, it seems that some <code>variable environment</code> are missing. So, what I try is to launch a shell and inside this shell to launch <code>myprogram</code>.</p>