From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#56025: 29.0.50; em-extpipe-test-2 times out on EMBA and Cygwin Date: Sun, 26 Jun 2022 10:22:45 -0700 Message-ID: <4676f52c-4758-38df-f0f4-dbcb5d848c1b@gmail.com> References: <8e21db9c-0100-998e-f280-81304e7ff61a@cornell.edu> <87mtecl82o.fsf@athena.silentflame.com> <40d9e52f-2041-b341-ff77-546ca7792791@cornell.edu> <87k09elrf8.fsf@athena.silentflame.com> <1de33903-4c55-e043-3754-726f7044f2d0@cornell.edu> <7e7daa2f-dbbc-cd0a-4958-2a2932b17837@gmail.com> <8974408d-91cd-aebd-7a5b-596a57bd640e@cornell.edu> <17d41105-b006-f9ad-af0b-ece84a7f5248@gmail.com> <040b3a36-459b-a94d-f879-7f45aac50bda@cornell.edu> <83sfnud26o.fsf@gnu.org> <96e47ba7-efaa-b6df-dd98-60f09068e68c@gmail.com> <874k097lbh.fsf@melete.silentflame.com> <8735frmjrr.fsf@athena.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35008"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 56025@debbugs.gnu.org To: Sean Whitton , Eli Zaretskii , Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 26 19:23:12 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5Vya-0008rf-3J for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Jun 2022 19:23:12 +0200 Original-Received: from localhost ([::1]:53584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5VyY-0000ME-CR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Jun 2022 13:23:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5VyQ-0000M2-4V for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 13:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5VyP-0002ID-Rv for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 13:23:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5VyP-0008VN-Lx for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 13:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jun 2022 17:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56025 X-GNU-PR-Package: emacs Original-Received: via spool by 56025-submit@debbugs.gnu.org id=B56025.165626417632673 (code B ref 56025); Sun, 26 Jun 2022 17:23:01 +0000 Original-Received: (at 56025) by debbugs.gnu.org; 26 Jun 2022 17:22:56 +0000 Original-Received: from localhost ([127.0.0.1]:48927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5VyJ-0008Uv-UP for submit@debbugs.gnu.org; Sun, 26 Jun 2022 13:22:56 -0400 Original-Received: from mail-pj1-f41.google.com ([209.85.216.41]:43825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5VyG-0008Ug-8u for 56025@debbugs.gnu.org; Sun, 26 Jun 2022 13:22:53 -0400 Original-Received: by mail-pj1-f41.google.com with SMTP id dw10-20020a17090b094a00b001ed00a16eb4so7318436pjb.2 for <56025@debbugs.gnu.org>; Sun, 26 Jun 2022 10:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=8iELzRkF/nrNlj7Dybzrlz6WP/WC/79SotZhpj2HRis=; b=LAOYCJ1kuMxT2hK0RuQkzs0W74EHStIc2XOg4UM3uPLzu8QLkYFIGg8egm7dtGM1du JywcLdxHFwNRPch3L+uGlvsVMVShWNzQeygxl3JAWP+K1XeeS8J3HcKTmgJJHZU7kpDi lgNMMEx+Np+NxFDNU/OPgQORmg6DEHB/8/rXAHrsckZVIQN7MI4yg98egp12yrDE0pOS mBmS2h+O/qpxaA8vTqBeNLyl1Ap36qqMjGCm8KTseNIg1wWyn70SxAYf+jzGUM1Gzn4q pvhvG61S76DnYA2Nsn6wCHc2rmZxyet0xx1Dm5XtPxKaFUxRE7GAkY4bxCAYNq+lZ/e4 w9ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8iELzRkF/nrNlj7Dybzrlz6WP/WC/79SotZhpj2HRis=; b=s9JbbPz6ButJUHaFoG+YG2PH2aBkZrQpwXW/b6ipWHGhh6Oohl8up1WZ9U+9Qedvn3 iWk3zeHNuPYx3PMU5dnctl4wrGn1GN60IFixEcIL6NKtXzmb1aIAJ2Q5fTtyRNvmHn7q rWogF1zxyN6TBgBeD60iInmaT8CiUZ26Zy2Sd3Tj5ch8BviILtXVG6ScbAFr5Fwtx7qy 0RMCGzloUpfzLwDGKPCoPjPUsH9lFViwltY0XQ9A3PGkicW+2nVBl8O94arvY3lJ14x2 87OlJiHEtkSB+o9EeLA3feSHuAwtYazhfg3aYpCFOrNae/ktyZXf+0n3mcouAzWkTKHP Mf8A== X-Gm-Message-State: AJIora8165Nx4q7VVFqj/EUMsLa5fEUmM3TChBHzv/5VG/zFyy0hF0Lq WWhDqsnRZhvJoFXGiQBB/r9sUqZLuO4= X-Google-Smtp-Source: AGRyM1vanabCjQlYsmXWWQNyLufOAhxNlu64xdTJwPhtQIGHVC1Oa1M0OTRf69hBdR2/quGXiOCPbg== X-Received: by 2002:a17:90b:1c0f:b0:1ec:ef7b:8bfc with SMTP id oc15-20020a17090b1c0f00b001ecef7b8bfcmr11118928pjb.157.1656264166157; Sun, 26 Jun 2022 10:22:46 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id a10-20020a17090a688a00b001ec71be4145sm5392626pjd.2.2022.06.26.10.22.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Jun 2022 10:22:45 -0700 (PDT) In-Reply-To: <8735frmjrr.fsf@athena.silentflame.com> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235383 Archived-At: On 6/26/2022 10:12 AM, Sean Whitton wrote: > On Fri 24 Jun 2022 at 04:03pm -07, Jim Porter wrote: > >> When [EOF is] received, all the bytes waiting to be read are >> immediately passed to the process without waiting for a , and >> the EOF is discarded. Thus, if there are no bytes waiting (that is, >> the EOF occurred at the beginning of a line), a byte count of zero >> shall be returned from the read(), representing an end-of-file >> indication. >> >> I interpret that to mean that the preferred way to indicate end-of-file >> to `rev' in this case is to send it "hi [NL] [EOF]". The second EOF that >> Eshell sends when closing the stderr output handle is superfluous, but >> it works fine as far as I can tell. >> >> [1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap11.html > > The text states unconditionally that when an EOF is received it is > discarded by the OS. So we can infer that it's fine to send three, > according to the standard -- it's not just that it happens to work. > > Thanks again for working on this. Ah, good catch. I glossed over the last sentence in that paragraph in the spec (hence why I didn't copy-paste it).