ipython/ipython — Issue #1009: Windows: regression in cd magic handling of paths
Author: jdmarch
Created: 2011-11-18 00:04:34+00:00
State: open

A. In 0.10.2, the user could copy a path from elsewhere, and paste it after cd magic, backslashes and all:

cd c:\Users\myname

In 0.11, this fails:
SyntaxError: (unicode error) 'rawunicodeescape' codec can't decode bytes in position 5-6: truncated \uXXXX...

No form of quoting (including raw) seems to help.

For manual path entry, forward slashes or double backslashes work, but for copy/paste this is a regression.

B. In 0.10, tab completion of quoted paths with spaces worked a bit (Tabbing immediately after a space, it failed, but then tabbing after a subsequent nonspace it worked again.) AFAICT in 0.12 there is no way to get tab completion of paths with spaces (quoted or not) working following a space character.

C. In 0.10, %cd could recognize paths which included spaces, quoted or unquoted. Not so in 0.12, which requires quotes. Arguable whether this is a troublesome regression or a logical improvement.