From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61024: 29.0.60; [PATCH] Eshell errors out when trying to redirect output of a remote process Date: Mon, 23 Jan 2023 15:21:49 +0200 Message-ID: <83wn5didxu.fsf@gnu.org> References: <230f0e06-f47a-6a0d-93de-222ca16f7213@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15090"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61024@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 23 14:22:21 2023 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 1pJwmC-0003jI-NV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Jan 2023 14:22:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJwlx-0008G8-9S; Mon, 23 Jan 2023 08:22:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJwlu-0008FW-OC for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 08:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJwlu-0007gR-C0 for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 08:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJwlu-0006eJ-2u for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 08:22: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: Mon, 23 Jan 2023 13:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61024 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 61024-submit@debbugs.gnu.org id=B61024.167448010925539 (code B ref 61024); Mon, 23 Jan 2023 13:22:02 +0000 Original-Received: (at 61024) by debbugs.gnu.org; 23 Jan 2023 13:21:49 +0000 Original-Received: from localhost ([127.0.0.1]:53642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJwlg-0006dr-Pb for submit@debbugs.gnu.org; Mon, 23 Jan 2023 08:21:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJwle-0006df-SB for 61024@debbugs.gnu.org; Mon, 23 Jan 2023 08:21:47 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJwlZ-0007c4-DY; Mon, 23 Jan 2023 08:21:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=emOjWVpke8XNqZsnmmNc1hIfoGK+I+arYS8OP9EHoXQ=; b=BjGPA7vLm6Lw lyFRL5r24kmLxizpcp8uQoLZRtHGtCc+1dPuyRq+j8BIHiiMQ9n3YhEuFC8QnTuuJ3jKUt3JGpIIV /XR4WnGSCj44RMD6/Brd93onNYpFfUo0BGvwZaomohNch++yXjXE+5JV1U7KSVhL8xDMSxIXxDdmo JQ8cPFqGogpLnnbXM12IBE/E6Hj++XfADgh00ONRm5UETwNhNgXYtC3ksDI2jgSRPPYbcD+vKNkvt SKweHujEfwKQGlM/70qiYcBGARq6joiIvbXi/JuBRlCG3DqhXoi2Iw6gRQqtQ7Cir0vCS8FjeOYY9 yuLcZALgoI7IEi2xokLsug==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJwlY-0003De-TP; Mon, 23 Jan 2023 08:21:41 -0500 In-Reply-To: <230f0e06-f47a-6a0d-93de-222ca16f7213@gmail.com> (message from Jim Porter on Sun, 22 Jan 2023 23:07:58 -0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253994 Archived-At: > Date: Sun, 22 Jan 2023 23:07:58 -0800 > From: Jim Porter > > ~ $ cd /sudo:: > /sudo:root@host:~ # *echo hi there > # > Wrong type argument: "bufferp echo-stderr" > > (Any other Tramp method should reproduce this issue.) That's because the > echo command is being redirected to two places: stdout is going to the > buffer "foo", and stderr is going to the Eshell buffer (via a pipe > process). However, that doesn't work for Tramp processes. > > Attached is a fix with a test. I think this should definitely go in > Emacs 29, since it's a pretty bad regression. Fine by me, unless Michael objects or has better ideas. > I'm actually surprised no one has filed a bug on this already. Maybe it tells us how many people use this combination?