nvbn/thefuck

EOL (end of line) issue on windows

Ouverte

#1 189 ouverte le 26 avr. 2021

 (1 commentaire) (2 réactions) (0 personne assignée)Python (3 960 forks)batch import
help wantedwindows

Métriques du dépôt

Stars
 (97 740 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur