ipython/ipython — Issue #1123: %run fails when quoted filename contains same quote, escaped
Author: jdmarch
Created: 2011-12-08 01:15:11+00:00
State: open

Apparent bug in %run (or perhaps more generally in magic). It fails if the filename is quoted and contains the same quote character, albeit escaped, e.g.:

%run 'a \' b.py'

Realistically, this only rears its head if the filename contains both kinds of quotes. In that case, the workaround is to escape all quotes and spaces and not quote the filename at all.