diff --git a/IPython/utils/path.py b/IPython/utils/path.py index 137f930..8a8e3e7 100644 --- a/IPython/utils/path.py +++ b/IPython/utils/path.py @@ -373,8 +373,11 @@ def shellglob(args): """ expanded = [] + # Do not unescape backslash in Windows as it is interpreted as + # path separator: + unescape = unescape_glob if sys.platform != 'win32' else lambda x: x for a in args: - expanded.extend(glob.glob(a) or [unescape_glob(a)]) + expanded.extend(glob.glob(a) or [unescape(a)]) return expanded