From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 3AAD221635 for ; Fri, 12 Apr 2024 21:00:31 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1712948431; b=etSl7Pj3Q3CVjXeDEBHqTFpSFFiWRMr98hhf0ooeYxIbkJb2rAUME3Yaw+DWHPnaOxYCza4PNX 9xboL2/Vk0GJEZxyIyhPaJvVFg8mAkEuHQAHr0ePUzHaoEB7MGc0yf33G1icWW5BDu1A2vqxaV UzEzzYJgrQoMri3nAUj013MUI8eZPPfnxQHAaD3W2q3KjAy0gvw1ZmBEJg1WwBfwI85uQp0d9e W2ZoWOqc585M5CJbWbZi1U1p2naBj4vG+9P5UeSXihMIEGjAp/ZbxLxn1YdArJawuZCVST+5n8 eArK8N0aYOcTbb6vJSPcyAN478UjFCpeH3AkxhgMckuDKg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f42.google.com) smtp.remote-ip=209.85.167.42; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1712948431; bh=ZjArRxi6xqZrHyWlzE7C86xnO8JVVgsbtvg4fNlggjw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=RVrTJZ+ADJ4bxW/QCzRTohnIxYKs8hnPX1tBhXfRBAXhIA29dwIwnw3cXjfgumHWR+RMxyLhZg Xg2yh7I9gAeO5ex7aVyLj2yj39B8CxNNmH8wkaHJac0WfyUS3foPdbZSp58IZQnKaU03SrJGFh 42N+N2Ev8RXBPwqBYJlqctDm6wviocEuaA+jtt5DEDBWB4p70MLTUPTdJmkB7OaklDp0sJ+xRU aTjlSNLYL15YpntImsrGIN+N2coiSfwdvzyd4jRLOAG9kEEy+u9VBzuc7+ym89QmavupGLjcKQ rJxU1Q2jlVtgE0BuE1FvYaWlXeE1RK0MByNCZTK4Z8iTWw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=njp7J9nK6nEm7QaHpygBG9ohiePCxe05jZXR3dkro4A=; b=iFbU9FLFVgB3PR1ewTTEuDw+jR 1vnoiRmyObiXClnPL+e6wf753UA4kiqvXEOKvDyJXi7T4Wp0BxgjwkWAHSZypo8t4+QXJhydY23Wn diyE2Ut0IM/+yn89I7maUnAmFccDl1OrHKnajPQLLS56rJkK+ZNUNpc9CRfs9jPorNph8bRq8faSq 6B9zTnTX2/ORAozURAF20rH+EjdLYvNCdu2+dCfUp6NMG4s7AXsQOYRqg5HkoXMRMnTQIWica4m8/ lmPo/qa9WEZGfMWdkuchz2Tb7UsgDB8QJAP3XA2vZMaazT1rZkXcs8MeQBDIeyyWMH4Sjskm8If/i d6vjiHZQ==; Received: by zero.zsh.org with local id 1rvM8U-000Psl-VR; Fri, 12 Apr 2024 19:00:30 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f42.google.com) smtp.remote-ip=209.85.167.42; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-lf1-f42.google.com ([209.85.167.42]:45241) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rvM89-000PZB-H4; Fri, 12 Apr 2024 19:00:11 +0000 Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-516d536f6f2so1389213e87.2 for ; Fri, 12 Apr 2024 12:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1712948408; x=1713553208; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=njp7J9nK6nEm7QaHpygBG9ohiePCxe05jZXR3dkro4A=; b=NB36O65KEjDKXUNALqSIC4Ukvbqddt+VaOr0QDaI4nqTffWWlvj6oKHxUErFwVjq0M 8MVEggYwuFirnsJX+eMswc9dzgVlZ3jPVVd9FTBkrK/tNvaLPYFyLXqBnRzZBlfFI3hN hJbg9l3uwayoxTDVLSZN6R2Lu7huTFpWCROoklkciBpFEOxHdM17j9LVnjjTFVywNhgU 1WF6TTlyGu6qDUHcW5Gqw8t+1f0qQFmovmuTCx9P4CirW8YbnhXofNPkmYkwWFAfvxhk Tglk8UDGfVc1rKZ0v0YfLSx66CY0IEcHSGaJ7xoCgRAzPkDGV1nyAfxPJD0QjTg14kj/ mpAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712948408; x=1713553208; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=njp7J9nK6nEm7QaHpygBG9ohiePCxe05jZXR3dkro4A=; b=fTXbtxAa3HjyOph6eez6u6i9FNdX/UI/Eky7ejblt9B3fU1kNJmuYiOasY5YAySmD7 iROWCEzX6nrku7IDhLSeD2Qfczdz+6Ei8E00tKWxhFcvrYZDFiEznJSn4ImrbwgEPf8V pKQ/rFnPSj7FwDbhpbS/I81OnNSx4CjB/6YiFTKbBk8+8xJJjb8MvuIZwBzZrGi9mgBP Ndd6PJ5aYxqhiYcoQVf2Tz4rJJnoAXjzecwz4ar0unBbtHShHsO62FlIDUQleabYrQhd 0SXRRI/FDZBv3S6oEqv57owKx1jHA5jXDkWM4mKUZna+j5vBM3rJLNGXkxRF+E7RgoVM AvWw== X-Forwarded-Encrypted: i=1; AJvYcCX5tJQgjxyQbnHnQAqQdufNA0Q2+GHK8TuCDMimvE+z++zrrl4354pT5PlqBotRkLgS8cepwI5Vi3RcKrbSiBtdiUCU X-Gm-Message-State: AOJu0YwBBBfTRYRqJ8t5roLyUUgNJrLwQ1NAwbdLrd0a8q3mnU/mHegW UCFg6rgv9ycbMf4Axq0h5/YTVlcMBngNOamjzXTLEXJJeb6A8AJ6Z/0XzxbSr9IFY3NpTAkdccO fi90A0y0Ys2hb4b4scpoN2oAW3ZUwx7AP+iaE X-Google-Smtp-Source: AGHT+IHQJ1HKdii5+xvmqWLSbHnc8uc3li03qvqYKG2pjTd9NyoCsMkKhg8T8fNeXHWvBbDZs0j0lRLZy0ZlR8HwW1Q= X-Received: by 2002:a05:6512:2fc:b0:517:8e01:2668 with SMTP id m28-20020a05651202fc00b005178e012668mr2402574lfq.67.1712948408318; Fri, 12 Apr 2024 12:00:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Fri, 12 Apr 2024 11:59:57 -0700 Message-ID: Subject: Re: [PATCH] remote files completion: remove double-escaping To: Mikael Magnusson Cc: Lyn Fugmann , zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52886 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Wed, Apr 10, 2024 at 11:45=E2=80=AFAM Mikael Magnusson wrote: > > On Wed, Apr 10, 2024 at 12:47=E2=80=AFPM Lyn Fugmann wrote: > > > > Removes the double escaping in the remote files completion. This affect= s rsync and scp. > > For example, instead of a space character in a remote filename turning = into `\\\ `, it will now correctly turn into `\ `. > > While scp apparently works with either one, rsync requires the latter s= ince version 3.2.4[1] (unless the legacy behavior is explicitly enabled). > > This has been a problem for almost two years now. > > This should probably be behind a zstyle (I guess it's fine if it > defaults to the new behavior), as currently this patch will break > completion for older versions of scp and rsync. That way users can > easily configure it per command or globally if they want. Doesn't this actually depend on the remote version rather than the local command? Might need to be configurable based on the destination? See also thread starting with workers/50484 from 2022 Subject: rsync comple= tions