bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55978: 29.0.50; shell-resync-dirs inf-loops if tty outputs CRNL


From: Eli Zaretskii
Subject: bug#55978: 29.0.50; shell-resync-dirs inf-loops if tty outputs CRNL
Date: Tue, 14 Jun 2022 22:17:58 +0300

> From: <miha@kamnitnik.top>
> Cc: 55978@debbugs.gnu.org
> Date: Tue, 14 Jun 2022 21:20:15 +0200
> 
> 
> [1:text/plain Hide]
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> Date: Tue, 14 Jun 2022 20:01:30 +0200
> >> From: miha--- via "Bug reports for GNU Emacs,
> >>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> >> 
> >> In M-x shell, execute "stty -nl" to make the tty translate \n into \r\n
> >> on output, and press "M-RET" (shell-resync-dir).
> >
> > I guess this requires to set coding-system for reading the shell
> > output to -dos?
> 
> That could be an option, though I was thinking of a bit less invasive
> and more local fix by performing a simple replace-regexp at the end of
> the function `shell-eval-command'.

Using the EOL decoding machinery is much more efficient.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]