[Ipython-tickets] [IPython] #240: ipython -c "foo" does not work right.

IPython ipython-tickets@scipy....
Sat Mar 29 11:57:42 CDT 2008


#240: ipython -c "foo" does not work right.
---------------------+------------------------------------------------------
 Reporter:  schola   |       Owner:  fperez
     Type:  defect   |      Status:  new   
 Priority:  normal   |   Milestone:        
Component:  ipython  |     Version:        
 Severity:  normal   |    Keywords:        
---------------------+------------------------------------------------------
 Hello,

 when i try
 {{{
 ipython -c "print('foo')"
 }}}
 ipython starts, prints 'foo' and shows me it's prompt, but it does not
 automatically go back to my system shell as one would expect it to do,
 since this is the behaviour of "python" and several shells.
 The manpage of ipython says:
 {{{
 -c <command>
     Execute  the  given  command  string,  and  set sys.argv to [’c’].
 This is similar to the -c option in the normal Python interpreter.
 }}}
 This seems not to be true. I am using ipython version 0.8.1.

 Have a nice day.

-- 
Ticket URL: <http://ipython.scipy.org/ipython/ipython/ticket/240>
IPython <http://ipython.scipy.org>
The IPython interactive Python system


More information about the Ipython-tickets mailing list