From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#56025: [WIP PATCH] 29.0.50; em-extpipe-test-2 times out on EMBA and Cygwin Date: Mon, 18 Jul 2022 10:09:14 +0200 Message-ID: <87zgh64zbp.fsf@gmx.de> References: <8e21db9c-0100-998e-f280-81304e7ff61a@cornell.edu> <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> <4676f52c-4758-38df-f0f4-dbcb5d848c1b@gmail.com> <8735fr2kq6.fsf@melete.silentflame.com> <10cf6a90-f86a-b0df-4dc2-c258b7494158@gmail.com> <18e79c02-3a2a-77d1-3798-33711f52d6b9@cornell.edu> <19c66901-2eeb-1f40-17a4-4ed54827e065@gmail.com> <5990de80-63a5-ac9b-1a11-c814aa9e38f2@gmail.com> <3779ea08-f481-5fb5-3257-ca9fa7c604bc@cornell.edu> <60cf587b-5d83-31d6-f0af-56979b221425@gmail.com> <83bktoqnru.fsf@gnu.org> <5f9b3680-d840-cc1d-14a6-1c8f71c30e62@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="562"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , 56025@debbugs.gnu.org, larsi@gnus.org, kbrown@cornell.edu, spwhitton@email.arizona.edu To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 18 10:10:13 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 1oDLpV-000AYB-7I for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Jul 2022 10:10:13 +0200 Original-Received: from localhost ([::1]:47930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDLpT-0006Qd-Qe for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Jul 2022 04:10:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDLpK-0006Q2-IY for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2022 04:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDLpK-0004le-9k for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2022 04:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oDLpK-00033a-2z for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2022 04:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jul 2022 08:10:02 +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.165813177111708 (code B ref 56025); Mon, 18 Jul 2022 08:10:02 +0000 Original-Received: (at 56025) by debbugs.gnu.org; 18 Jul 2022 08:09:31 +0000 Original-Received: from localhost ([127.0.0.1]:49147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDLop-00032l-AI for submit@debbugs.gnu.org; Mon, 18 Jul 2022 04:09:31 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:50965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDLom-00032W-Cc for 56025@debbugs.gnu.org; Mon, 18 Jul 2022 04:09:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1658131756; bh=rG0VhioRBH0uQ1Am+sf9+5xvlrhvClCslAqp3k9OC10=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=RvZzMVDrX6EkjZnQnvemRqUErxt4E1a/pxrCSTXov82ilLVutPbl16QpKyVkiwF68 0pOmFmD0ZVx8F5s9FGyH44Mf+qc/T0HymHwN9jfKydBbWvAEsIA2gzJEmxxrC6NRTp 1skuhnhharWhcW3AKqniRTpLu4RqJisw6P7YKMeM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.112.19]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mg6Zw-1nbWxW0QTm-00he3X; Mon, 18 Jul 2022 10:09:16 +0200 In-Reply-To: <5f9b3680-d840-cc1d-14a6-1c8f71c30e62@gmail.com> (Jim Porter's message of "Sun, 17 Jul 2022 10:44:26 -0700") X-Provags-ID: V03:K1:YcaCI7N7PCqxFJY4Ll65h547/EkyNPvsAuAzaxkeuNR0U+Z3CP2 2cHeGRat5ghZnPSOlPFxq0DvImlaVCyKc6fCH1GvgkjRdhBpxdHl8cve+5qVELG5l67UrCO ihahybyoZ+2Y52rvC7ei6bHAyIHAP+fAGqFk4AcZg6Wx3Jg56VczNCEdl1+bNUsYFkL10py tPQBihz0oRu1aZRWLsLFQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:2V1TUrsye7I=:Z2CoO7NVlrDHNqAkwObIRp kfV/YUYohV/fCtNSHmuX1miYJJ+lzIyVWA8lrPBZ7SfefokNPANQumfPaCkFiFCqJ8M2j2fLr XgCGzM2SaIMvPPMxk9yvxB+hFFsiVH6oNamO7mcchFa2fsAZNEkMTvX27s0oOxXpBWSGIWEi0 xfK5B92VhKm1O0yOqTER+dcOlPMCtIlO2tKrDxwtXajSYt2GwI3J7IrpctlQhfy9OhC35MG30 kSlqrYRo5ERklwT3lgRJCikrPjDsb8GR9MOImKQZuG3CxR1AxWxtwXsPoLfuq7irbON0TZBIt W2OcJy5qB2D8AxKdvSUdRaht6iPe34TLAtK25yuI7a4EBQ36zStFIZAqgyMOmrs80VQF+fZJw z6MJf0unn1O8jm9BOoOOFox4X3UZ68fTDZg7d/CB78HXY9AuRIrRjnf1i84iqzyOHXwpZiT8S Oc9ygkY8kn5hFTYV3q5KOq8tcSYRgBYC2RJTFCCcQOgxiJK5Va9ubWHbKKT+seT6o4qigoMyV ywBslHVlz+wM5tbM/ooTp2X2sorfWfLjAf8TX1dczdG7RNmnPTP5VQ4l5DkR6zGUjgK+Xlr/M YuTX16LzYHYmSllw4if8q4Wh2GvXpASqGDAMgt2zXkuWz4nlofhfZQlMVKqYfV/iHb6b9VUEF L7TId/JNZXcd1P95vptCzyYSJVJIRKWt9sYT9ydn0u3QkHSavUV8sMjgR0AULYM5Iki6EDKFA keiRx/vNES4TXBMVpu58ICMik2muprE38i7358r0ZNaMF7otgfAD3dPS2lShumMt50jC2FeH 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:237333 Archived-At: Jim Porter writes: Hi Jim, > Sure. I mentioned it briefly earlier in the thread, but a > more-complete summary would probably help. > > Normally, Eshell connects programs in a pipeline like "foo | bar" by > setting a process filter for "foo", and inside that filter, > (eventually) calling `process-send-string' for "bar". In most shells, > you'd expect that connection to be a pipe, but in Eshell, the > processes are created with a PTY connection by default. > > My patch adds support for `make-process' to use a PTY only for the > child process's stdin or its stdout (in addition to the preexisting > behaviors of PTY for both or neither). This then lets Eshell request a > pipe for foo's stdout and bar's stdin, while using PTYs for foo's > stdin and bar's stdout: > > Before: > [pty 1] -> foo -> [pty 1] -> Eshell -> [pty 2] -> bar -> [pty 2] > > After: > [pty 1] -> foo -> [pipe] -> Eshell -> [pipe] -> bar -> [pty 2] I haven't tested, but it looks like it won't work with remote processes foo and bar. Something like --8<---------------cut here---------------start------------->8--- ~ $ cd /ssh:remotehost: /ssh:remotehost:~ $ *ls | *grep a --8<---------------cut here---------------end--------------->8--- I have no idea whether such a usage pattern makes sense, but it seems to work ATM. The alternative, calling "*ls *| *grep a", works as well, but there are different results. Best regards, Michael.