title: I can't seem to use the Bash "-c" option with arguments after the "-c" option string
body: <p>The man page for Bash says, regarding the <code>-c</code> option:</p>
  
  <blockquote>
    <p><code>-c <i>string</i></code>
    If the <code>-c</code> option is present, then commands are read from
    <em><code>string</code></em>. If there are arguments after
    the string, they are assigned to the
    positional parameters, starting with
    <code>$0</code>.</p>
  </blockquote>
  
  <p>So given that description, I would think something like this ought to work:</p>
  
  <pre><code>bash -c "echo arg 0: $0, arg 1: $1" arg1
  </code></pre>
  
  <p>but the output just shows the following, so it looks like the arguments after the <code>-c</code> string are not being assigned to the positional parameters.</p>
  
  <pre><code>arg 0: -bash, arg 1:
  </code></pre>
  
  <p>I am running a fairly ancient Bash (on Fedora 4):</p>
  
  <blockquote>
    <p>[root@dd42 trunk]# bash --version
    GNU bash, version 3.00.16(1)-release (i386-redhat-linux-gnu)
    Copyright (C) 2004 Free Software Foundation, Inc.</p>
  </blockquote>
  
  <p>I am really trying to execute a bit of a shell script with arguments. I thought <code>-c</code> looked very promising, hence the issue above. I wondered about using eval, but I don't think I can pass arguments to the stuff that follows eval. I'm open to other suggestions as well.</p>