[IPython-User] Expanding glob* parameters for %run
Wed Jul 18 16:32:17 CDT 2012
Bringing discussion from PR #2165 to this mailing list.
In most shells, if you do "python myscript.py foo*", the foo* is
expanded into "foo1 foo2 foo.jpg" before your script sees it. At
present, doing the equivalent in ipython - %run myscript.py foo* -
will just leave the argument as foo*. PR #2165 aims to make it
possible to get foo* expanded like in a shell.
1. Do you think this should be enabled by default, or should it
require an argument (like -g) to expand these patterns? %run mostly
aims to work like a command line, but if anyone is relying on the old
behaviour, we should be careful about changing it suddenly.
2. If expansion should be enabled by default, is there a need for an
argument to explicitly disable it? Or is it sufficient to escape
special characters (foo\*) where they're needed?
More information about the IPython-User