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#70792: 30.0.50; [PATCH] Add Eshell support for expanding absolute file names within the current remote connection Date: Mon, 6 May 2024 11:37:06 -0700 Message-ID: <3940954c-a0e7-e10c-2291-9c9392dda37f@gmail.com> References: <5b881f54-4c29-f8d8-d1f7-57b44e7cfc80@gmail.com> <87y18mdglp.fsf@zephyr.silentflame.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="20778"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70792@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 06 20:38:04 2024 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 1s43Dw-0005IK-Gc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 May 2024 20:38:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s43Da-00055o-Ot; Mon, 06 May 2024 14:37:42 -0400 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 1s43DX-00055N-Jy for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 14:37:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s43DW-00013z-7w for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 14:37:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s43Dt-0005ar-W5 for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 14:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 May 2024 18:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70792-submit@debbugs.gnu.org id=B70792.171502066021490 (code B ref 70792); Mon, 06 May 2024 18:38:01 +0000 Original-Received: (at 70792) by debbugs.gnu.org; 6 May 2024 18:37:40 +0000 Original-Received: from localhost ([127.0.0.1]:39555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s43DY-0005aX-GL for submit@debbugs.gnu.org; Mon, 06 May 2024 14:37:40 -0400 Original-Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:60859) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s43DW-0005aM-BP for 70792@debbugs.gnu.org; Mon, 06 May 2024 14:37:39 -0400 Original-Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6f447976de7so1636482b3a.1 for <70792@debbugs.gnu.org>; Mon, 06 May 2024 11:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715020628; x=1715625428; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=QoNiiwxuHGCAMJcsI2dfsMRLeHIoP3nlx+oWF8oL/Fs=; b=TFt9aAGMhLXwdKWbSfxGvQHpitaml6AxBSGRmmuLNMlTi2HsmEGKSyYIHLe3exiLiu C9IzlyMpRufmLSoUOw+lcRk3pruCF4j+zoRxSwMrOVVH0WgAvmMXSy457Ku7z+a4QVom 90If1ELtEthx28vZ/Q8ut5Gd8BZGydw9C4VB4QdnfXKx2HysorxWszyf7eShDp4zcKGg BMPdTkG+ypbzkWoLJk/nUGq8xqAI2AcusPyHqrnv2AlBtTKlLojTMHdmy0MnS1e5vrjJ uVD1i0A87TxQCFoeuqD9HkTLP6uMlWv1BvY6qZe7IkwmTw75zDPQbRtGXSFX6TZ1Hc3r Bp+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715020628; x=1715625428; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QoNiiwxuHGCAMJcsI2dfsMRLeHIoP3nlx+oWF8oL/Fs=; b=njElHKfpRGWX19p3RGfZ03+HdvpV/KyVHMMN/KBDVjsvMFKTvRRCqYw88RK5gJgI3f QVKP6bZvBKLViu5SMg8zspVqzOgxOZ7A5KS7J4whub/EVu1EA+mWRygpmSfOnR9DClqN 9IyPMF7o76Dz1cTgwltWmDuaJhmvo1ZWEDvuLTfgLQnLBiPvpKfoSPVgFtk89eV4saNP WVv95zieuID5R7aCNDar9IuA05R9TTMts4bWLtD+xl+/lBj0rfcxhQljIH5sD8UFrdlJ QCeQGrtC05US+hu6Hw1thQIcJuM5LL1uUNSjKj6fdeOwZV100LDFHmuDM0b2IcGi/G2X vC4g== X-Gm-Message-State: AOJu0YzfI46cmFQFhPUaLX0GDrTae557w6GpXVo5kE2pg2G5dkDf5u1w SQW47g4gjJ5yGcAGF1ky0jwDmGJ0LUrrRI7OQKM6bwozZIAN5wtV X-Google-Smtp-Source: AGHT+IGxscmh61D4CLHE5esEtd+SLin6XBKXKNLdzVaPaczJmOgp3VMgVsibHvgrhAjVp9o3UikMQA== X-Received: by 2002:a05:6a00:a23:b0:6ed:41f3:431d with SMTP id p35-20020a056a000a2300b006ed41f3431dmr11918954pfh.0.1715020627782; Mon, 06 May 2024 11:37:07 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id g6-20020aa79f06000000b006edca18c194sm3262584pfr.22.2024.05.06.11.37.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 May 2024 11:37:07 -0700 (PDT) Content-Language: en-US In-Reply-To: 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:284601 Archived-At: On 5/6/2024 11:28 AM, Jim Porter wrote: > Yes, but this breaks in non-obvious ways if Eshell's "cp" implementation > falls back to the external program. For example, today: > >   ~ $ cp file /ssh:remote:~/file    # copies "file" to a remote host >   ~ $ cp -b file /ssh:remote:~/file >   /usr/bin/cp: cannot create regular file '/ssh:remote:~/file': No such >   file or directory > > Or the second line might work if you get unlucky, or pass --parents, or... By "work" here, I mean, "cp will copy the file, but to a place you likely didn't intend."