擅长:python、mysql、java
<p>从Bash<a href="http://manpages.debian.org/cgi-bin/man.cgi?query=bash&apropos=0&sektion=0&manpath=Debian+7.0+wheezy&format=html&locale=en" rel="nofollow">man page</a>:</p>
<blockquote>
<pre><code>-c string If the -c option is present, then commands are read
from string. If there are arguments after the string,
they are assigned to the positional parameters,
starting with $0.
</code></pre>
</blockquote>
<p>例如</p>
<pre><code>$ bash -c 'echo x $0 $1 $2' foo bar baz
x foo bar baz
</code></pre>
<p>但是,您不想分配给位置参数,所以将<code>paramList</code>更改为</p>
^{pr2}$