lsvirtualenv and workon output broken in zsh (5+?)
I have the following virtualenvs in my
~/.virtualenvs: "2.7.5", "2.7.6", "3.3.2", "aws".
lsvirtualenv fails to list "2.7.5".
lsvirtualenv -b or
workon (without any parameters) gives an even stranger output:
]7;file://my.hostname.com/Users/my_login/.virtualenvs2.7.5 2.7.6 3.3.2 aws
The problem seems to be introduced by the invocation of
fmt on line 538 of
For some reason that I cannot find documented anywhere, zsh returns the working directory of a subshell as a
file:// URL on STDOUT, wrapped in control characters. This is easily verified:
(cd /) | cat -v
fmt makes the URL visible, and screws up the output.
As I said, I cannot find this feature of zsh documented anywhere. It may or may not have been introduced recently. It may or may not be under the control of some zsh configuration knob.
There is at least one other user on StackOverflow who has also run into this issue, so it's not just me.