From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.help Subject: Re: Dired command on same host Date: Mon, 10 Jan 2022 17:16:00 +0100 Message-ID: <87wnj7pnwf.fsf@elite.giraud> References: <877dbf94su.fsf@elite.giraud> <87czl77j7e.fsf@gmx.de> <87iluz79ja.fsf@elite.giraud> <878rvv73mr.fsf@gmx.de> <87k0ffp9mp.fsf@gnu.org> <877dbe7cf9.fsf@elite.giraud> <87iluxnb79.fsf@logand.com> <87ee5l5drh.fsf@gmx.de> <87bl0n8s0n.fsf@gmx.de> <87o84kvstr.fsf@elite.giraud> <87v8yriwb7.fsf@gmx.de> <874k6bsmzj.fsf@elite.giraud> <87mtk3iqkg.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12466"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) Cc: help-gnu-emacs@gnu.org, Tomas Hlavaty , Tassilo Horn To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 10 17:16:55 2022 Return-path: Envelope-to: geh-help-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 1n6xLq-000329-Lr for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Jan 2022 17:16:54 +0100 Original-Received: from localhost ([::1]:56148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6xLp-0004Hm-KM for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Jan 2022 11:16:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6xL7-00049o-2p for help-gnu-emacs@gnu.org; Mon, 10 Jan 2022 11:16:09 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:14750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6xL3-0007Rt-Ay; Mon, 10 Jan 2022 11:16:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=o0zI8YJEi5EMR9GJ XqqkrJ7x29E2XDK3e5J5cocsOas=; h=in-reply-to:date:references:subject: cc:to:from; d=ledu-giraud.fr; b=HEgw4PW182Vy/KI2oDKKT1uch7GTPfRyawvcW/ 8gOfdkeE6gRRWyuhwgF6KYAs6oLVYeqFjHXVd5hUaI/UcWkN4aTfY0ZqMxn397XURfLuIa DS7zuiA6atqGwI+wXT6QMpw8kyLuwvNu0QYm1WqXOGnn4eHZNzaXH9FoBbJJCZp2x9ANB/ CLHI3aSlnzMs6F6/F/zJqLn+gJ40/NCujDd+Pm0z+hkMtGnnq3Oj3slp/WgGISmOcWlxDK OuRd2Avkem5GMRSlmJJzY3120BtcNIEYuVPffbZW2/xPdOIDIjyyvktWoSEs2OLlS3kt+c A3mxpZP+gz2lk9jZO3CaWS0A== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 5e68d7e4 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 10 Jan 2022 17:16:00 +0100 (CET) In-Reply-To: <87mtk3iqkg.fsf@gmx.de> (Michael Albinus's message of "Mon, 10 Jan 2022 16:00:15 +0100") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135184 Archived-At: Michael Albinus writes: > Manuel Giraud writes: > > Hi Manuel, > >>> What will it be good for? It copies also via your local tmp directory, >>> doesn't it? >> >> My intent was to use scp default "-3" behaviour when source and >> destination are remote hosts. Why? Because this behaviour works without >> filling up my local (small) /tmp directory whereas tramp does. I don't >> know how it works but it seems that a "scp hostA:file hostB:" does not >> use /tmp. > > Interesting. Honestly, I have no idea where the scp program buffers the > local temp data. Perhaps it is better to use this, indeed. Ok, I might have been too bleeding edge on ssh here. If, I understand the following code correctly: https://github.com/openbsd/src/blob/33e609bc6fba341792696aa7159aa47556483f0e/usr.bin/ssh/scp.c#L994 It seems that if mode is SFTP, the copy is done from one SFTP connection to another directly. But, the default to SFTP mode was activated quite recently: https://github.com/openbsd/src/commit/88549df51ff400f3bab7dd1ee92d4f6fd526b715#diff-b94bba0ea2aa22d09c30d4c1e41153505d94a5d9cb61fad6823a950c2cf0bb22 And according this: https://www.openssh.com/releasenotes.html, the default is not SFTP yet in the last release of openssh. So maybe it could be a method worth having for tramp in the future ;-) Does a "scp hostA:fileA hostB:" creates a /tmp file on you side? -- Manuel Giraud