From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34123: A patch to fix reading EOF characters in non-interactive mode Date: Fri, 18 Jan 2019 15:25:02 +0200 Message-ID: <8336pqcd3l.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1547818638 27151 195.159.176.226 (18 Jan 2019 13:37:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2019 13:37:18 +0000 (UTC) Cc: 34123@debbugs.gnu.org To: Shawn Presser Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 18 14:37:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkUKf-0006x0-DA for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jan 2019 14:37:13 +0100 Original-Received: from localhost ([127.0.0.1]:39493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkUMl-00078T-CS for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jan 2019 08:39:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkU9r-00055i-Mm for bug-gnu-emacs@gnu.org; Fri, 18 Jan 2019 08:26:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkU9q-0005Cu-TU for bug-gnu-emacs@gnu.org; Fri, 18 Jan 2019 08:26:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkU9q-0005Bv-Q9 for bug-gnu-emacs@gnu.org; Fri, 18 Jan 2019 08:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gkU9q-0004OH-CR for bug-gnu-emacs@gnu.org; Fri, 18 Jan 2019 08:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Jan 2019 13:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 34123-submit@debbugs.gnu.org id=B34123.154781792816840 (code B ref 34123); Fri, 18 Jan 2019 13:26:02 +0000 Original-Received: (at 34123) by debbugs.gnu.org; 18 Jan 2019 13:25:28 +0000 Original-Received: from localhost ([127.0.0.1]:35808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkU9I-0004NY-7B for submit@debbugs.gnu.org; Fri, 18 Jan 2019 08:25:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkU9G-0004NL-E3 for 34123@debbugs.gnu.org; Fri, 18 Jan 2019 08:25:26 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkU95-00048D-Do; Fri, 18 Jan 2019 08:25:18 -0500 Original-Received: from [176.228.60.248] (port=1797 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gkU93-0000a0-RF; Fri, 18 Jan 2019 08:25:15 -0500 In-reply-to: (message from Shawn Presser on Fri, 18 Jan 2019 04:35:34 -0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154548 Archived-At: > From: Shawn Presser > 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?