nvbn/thefuck

EOL (end of line) issue on windows

Open

#1,189 创建于 2021年4月26日

在 GitHub 查看
 (1 评论) (2 反应) (0 负责人)Python (96,953 star) (3,949 fork)batch import
help wantedwindows

描述

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

The Fuck 3.30 using Python 3.8.3 and ZSH 5.8

Your system (Debian 7, ArchLinux, Windows, etc.):

Windows 10 1909, cygwin and conemu

How to reproduce the bug:

In my environment, the commands generated by thefuck ends with "^M". It seems it's because all the output of thefuck ends with "\r\n" on windows. However, the zsh can only process commands end with "\n".

For example, when I run eval $(thefuck --alias), the error message is

zsh: parse error near `^M'

Any idea about this issue? Thank you.

贡献者指南