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: Sat, 18 Jun 2022 12:02:15 -0700 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34226"; mail-complaints-to="usenet@ciao.gmane.io" To: Ken Brown , Sean Whitton , 56025@debbugs.gnu.org, Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 18 21:03:11 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 1o2div-0008kv-Uf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Jun 2022 21:03:09 +0200 Original-Received: from localhost ([::1]:55344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2diu-0001MV-TT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Jun 2022 15:03:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2dio-0001MN-69 for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 15:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2din-0002GR-UO for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 15:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o2din-0000bK-Rc for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 15:03: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: Sat, 18 Jun 2022 19:03: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.16555789452268 (code B ref 56025); Sat, 18 Jun 2022 19:03:01 +0000 Original-Received: (at 56025) by debbugs.gnu.org; 18 Jun 2022 19:02:25 +0000 Original-Received: from localhost ([127.0.0.1]:50025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2diD-0000aV-9k for submit@debbugs.gnu.org; Sat, 18 Jun 2022 15:02:25 -0400 Original-Received: from mail-pl1-f175.google.com ([209.85.214.175]:34439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2diB-0000aG-F9 for 56025@debbugs.gnu.org; Sat, 18 Jun 2022 15:02:24 -0400 Original-Received: by mail-pl1-f175.google.com with SMTP id i15so6463696plr.1 for <56025@debbugs.gnu.org>; Sat, 18 Jun 2022 12:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=daQw/G4KmVx/xlCjingvKLfGY96eOpcbgL59h8oAaXY=; b=TQX1rQ6X6xfoXKB4eIdkWNLJmQPQ+bWU2GN608svTTNljH9B+taCtC/cIG5H4jHF2O o04hvIy5Hvxb1+oE0KluoHbMmCVPy5r1420YMDwbDjbaOaRhiS5jAZTNOskmOiw9rh50 XVv5yGraYmu4Ph4UmWsaTe2jgke/XuGKZHmAzHBAl63qTHOFQNF/8zEZK0x7sV8EpbN8 cP8Vwxy7YARQXIdOqkbFZTjv549EV8zXvM//u/6fn9rd8EVxw+5lkOFkGnnbR0ozx6Cy BoE6FZUJ2vIz6j9i7XkRuCxatG0B4HwyTLrD3NECU0mnA5lVwIsH3rhiBNTClVxU49e7 3Lgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=daQw/G4KmVx/xlCjingvKLfGY96eOpcbgL59h8oAaXY=; b=nF41OOu4Lz8UqUe2fE7zW351wk1RDqCBpssf767vm/aH8ARvMYCarHQX9XJIhnQzlP IJz4a7QCuMqzd8cJXPa+UE0ZOK27xwT2duedACdo6mVNDgbeS051W/IhncTg1NC9khYP /cET/2EopmeOHLV08tS0+bTI2GB3HD8kn51aYh5+zf4O0/8WGJIAIK+vNiVp6DlX8cit lWj6ii7af417llcY0RU8SNR9rUJqP5l18zOT0fXfFKsBQ5WL8lRUx92vQ2/v0OXdyomf DidiVM+dIHzfE8Yy6fyQV116SMsHCe9+vfnK4XUisTJIjA23lSIWVjd2+sLwhIIiwQFb ncCg== X-Gm-Message-State: AJIora+GjW/KeLE62tiXhK6JVoDeUOBsTXwgVx2BskMpsm5SoKyYSZu6 6s5RkJPKqEMLbLZ99Ycbpxg= X-Google-Smtp-Source: AGRyM1ssLDWCCVRJJq/Khx5ds7EpeNSUxn9nTLfcPurFRXD/PzdTL7YUwqdeoYQbtUxinDlRyosviw== X-Received: by 2002:a17:902:efcc:b0:163:f35b:2a99 with SMTP id ja12-20020a170902efcc00b00163f35b2a99mr15428202plb.42.1655578937486; Sat, 18 Jun 2022 12:02:17 -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 g23-20020a17090a579700b001eaec814132sm5845637pji.3.2022.06.18.12.02.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Jun 2022 12:02:16 -0700 (PDT) In-Reply-To: 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:234762 Archived-At: On 6/18/2022 10:52 AM, Ken Brown wrote: > No, I'm seeing the same results on Emacs 28.  On both Emacs 28 and Emacs > 29, rev is apparently not seeing EOF unless echo outputs a newline, so > rev keeps waiting for input. Ah ha! Thanks for debugging this. The minimal fix then would be to change the command in em-extpipe-test-2 to either of these: echo -N "bar" | rev *>temp *echo "bar" | rev *>temp One last[1] question: if you ran "echo -n bar | rev" in Cygwin Bash, does it hang there too? Maybe this is just a Cygwin limitation, or maybe Eshell is doing something wrong with its built-in pipelines in this situation. > [Side note: It took me a while to sort this out because (a) Eshell's > echo does not output a newline by default, in contrast to Bash's builtin > echo; (b) in Eshell in Emacs 28, you use '-n' to add a newline, while in > Bash '-n' suppresses the newline; and (c) in Eshell in Emacs 29, you use > '-N' to add a newline.] This is one of the parts of Eshell that's always bothered me a bit. Eshell's echo is different enough from other echo implementations that it's easy to get tripped up. There's some further discussion of this in bug#12689 as well. I'm hesitant to change Eshell's echo too much, since it could break user scripts, but it would be nice if we could find a reasonably-compatible way of making it work more like /bin/echo. [1] Well, probably last.