title: sys.argv is different when in interactive mode in Ipython
body: <p>When I run a script with Ipython in interactive mode, the <code>sys.argv</code> argument list is different in the interactive part of the execution than in the script.</p>
  
  <p>Is this a bug, or am I doing something wrong?</p>
  
  <p>Thanks!</p>
  
  <pre><code>oskar@RR06:~$ cat test.py
  import sys
  print(sys.argv)
  temp = sys.argv
  
  oskar@RR06:~$ ipython -i test.py -- foo bar
  Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
  Type "copyright", "credits" or "license" for more information.
  
  IPython 4.2.1 -- An enhanced Interactive Python.
  ?         -&gt; Introduction and overview of IPython's features.
  %quickref -&gt; Quick reference.
  help      -&gt; Python's own help system.
  object?   -&gt; Details about 'object', use 'object??' for extra details.
  ['/home/oskar/test.py', 'foo', 'bar']
  
  In [1]: temp
  Out[1]: ['/home/oskar/test.py', 'foo', 'bar']
  
  In [2]: sys.argv
  Out[2]: ['/usr/local/bin/ipython', '-i', 'test.py', '--', 'foo', 'bar']
  </code></pre>