[IPython-user] ls strangeness
Zachary Pincus
zpincus at stanford.edu
Fri Mar 31 18:49:34 CST 2006
The shell is looking for a command on the path named 'ls -F', because
of how the command string is being passed from python to the shell.
Did you set up your ipythonrc files in some custom way so that the
'ls' magic command is set to 'ls -F'?
I ran into this problem with the 'edit' magic command when I set it
in my ipythonrc to be something with an argument. This was fixed in
the ipython code for the 'edit' magic, but possibly not for the 'ls'
magic.
Zach
On Mar 31, 2006, at 1:19 PM, John Hunter wrote:
>
> Any idea what is going on here
>
> peds-pc311:~/mpl/src> ipython
> Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.7.2.svn -- An enhanced Interactive Python.
> ? -> Introduction to IPython's features.
> %magic -> Information about IPython's 'magic' % functions.
> help -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
>
> In [1]: ls
> sh: ls -F: command not found
>
> In [2]: !ls -F
> MPL_isnan.h _backend_gdk.c _subprocess.c _wxagg.cpp
> mplutils.cpp
> _backend_agg.cpp _gtkagg.cpp _tkagg.cpp agg.cxx
> mplutils.h
>
> _______________________________________________
> IPython-user mailing list
> IPython-user at scipy.net
> http://scipy.net/mailman/listinfo/ipython-user
More information about the IPython-user
mailing list