GNU bug report logs - #34123
A patch to fix reading EOF characters in non-interactive mode

Previous Next

Package: emacs;

Reported by: Shawn Presser <shawnpresser <at> gmail.com>

Date: Fri, 18 Jan 2019 10:48:02 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Shawn Presser <shawnpresser <at> gmail.com>
Cc: 34123 <at> debbugs.gnu.org
Subject: bug#34123: A patch to fix reading EOF characters in non-interactive mode
Date: Fri, 18 Jan 2019 15:25:02 +0200
> From: Shawn Presser <shawnpresser <at> gmail.com>
> Date: Fri, 18 Jan 2019 04:35:34 -0600
> 
> $ git clone https://github.com/shawwn/y
> $ cd y
> $ bin/y
> > (read t)
> Lisp expression: 42
> 42
> > (read t)
> Lisp expression: ^Derror: Error reading from stdin
> > Error reading from stdin
> $ 
> 
> Notice that it’s currently impossible for non-interactive scripts to recover from EOF when reading from tty.

What would you want such non-interactive scripts to do after recovery?




This bug report was last modified 4 years and 338 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.