From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: PR: dired-do-create-files now checks for trailing slashes in the target Date: Thu, 30 Sep 2021 15:54:33 +0200 Message-ID: References: <831r58k0cx.fsf@gnu.org> <87tui4qyni.fsf@gnu.org> <83tui4iift.fsf@gnu.org> <874ka43rp1.fsf@gnu.org> <83ee97il43.fsf@gnu.org> <87zgrv33mf.fsf@gnu.org> <838rzfijnj.fsf@gnu.org> <87r1d73312.fsf@gnu.org> <837deziiwz.fsf@gnu.org> <87ee97bgxt.fsf@gnus.org> <87fstn2ydc.fsf@gnu.org> <87bl4a7g2m.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26893"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Emacs developers , Rudi C , Tassilo Horn To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 30 16:07:38 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mVwio-0006md-Fu for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Sep 2021 16:07:38 +0200 Original-Received: from localhost ([::1]:54940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVwim-0006Yd-Ce for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Sep 2021 10:07:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVwX4-00071E-Bi for emacs-devel@gnu.org; Thu, 30 Sep 2021 09:55:33 -0400 Original-Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:39477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVwWz-0006l3-4A; Thu, 30 Sep 2021 09:55:28 -0400 Original-Received: by mail-pg1-x535.google.com with SMTP id g184so6301836pgc.6; Thu, 30 Sep 2021 06:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zpoPUNhg7QLIqah82wgMBCE2G/PBTsYBBzvlgtb8rgE=; b=Jxbbc17GsRuVvKp2EBYMTFWX6XPcUuExumz7C1SC1ruU8Cs4BqbbsPkm4Yl3enMxi5 LZ1qAiwVDOLv7UGzDq2du8oxQNe9ujpLLPkZCKuwgjodBWZug8kBNpSuzwP9W0u/I47Y Dym2FysnutsoWfgbkQiuuPCmIShIGZJo3ej9Vzzk9b5blU0hMTbVWOgfoB41xGiU/yni PSXRwY1OlgXABi8suZ1s9w5vQPKC5Ks2ADOLbgx3y0/15tPrmmhtsOWzg00HJUS1CljL GVRH/cYYZZW9ZTNVCv5JFPwHvCw25cKRTEEFFujpqoILrdJ2dRAvf6gHPa6m8/daJOjT 6okQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zpoPUNhg7QLIqah82wgMBCE2G/PBTsYBBzvlgtb8rgE=; b=FvzXFR3vCoGXgoctE10fC9tTh1zmIy7Spk9vUofln6FIuen39inNJnFx5GcMvuqP+v WYqw1zzCOosvX2W5MBHa7zrd3WWjhHZ6YLkrLYZejMIcMo9CR9FgkjTDYbs0TZRkh0e/ 2vAnYfi5d1jGBmm9JpgmPxeG3XOC/nZmab67+1aUJNf9+eNLK8UNl0SuwBPn4TDkjL9I zOKdAjPR5LoYMvyj0+Z0ZwqW2JAEBgcuowSNZ1NL1SutlqpHMoIhB4OelB3wYU+7gIyN s9z3ASayiv/oal+fFcSbbdzPCs/HMfx9oIARcDZkP36orXJ1LN/+tnkxm1g2IczxVqHs DmUg== X-Gm-Message-State: AOAM532Rm3Vc2w5fGF6IuX960dhr/Uqh5I5ULIIVcPe/u2XA1M931Ev0 Svee5JVqSTa2J12Q9yGTzGogqrckDN5TYgj7SS0= X-Google-Smtp-Source: ABdhPJwq0HebQSQsuX6GzJRnUvZtPRJPVTMdP3dtcu9LyOFh3EP9Oe8+xlQNR0eOoEm0PpQTuRZGqLYYSgi+yxFhItg= X-Received: by 2002:a05:6a00:1586:b0:447:b30c:4a65 with SMTP id u6-20020a056a00158600b00447b30c4a65mr4442234pfk.0.1633010121997; Thu, 30 Sep 2021 06:55:21 -0700 (PDT) In-Reply-To: <87bl4a7g2m.fsf@gnus.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=stefankangas@gmail.com; helo=mail-pg1-x535.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275898 Archived-At: Den tors 30 sep. 2021 kl 08:06 skrev Lars Ingebrigtsen : > Isn't that just about the opposite of the syntax in rsync? That is, > "rsync foo/ bar" will copy the files in foo over to bad, while "rsync > foo bar" will copy the directory itself into bar. (Whether you have a > slash or not at the end of the destination directory doesn't make a > difference.) Having a slash at the end of the destination directory *is* significant with rsync: $ touch foo $ ls bar ls: bar: No such file or directory $ rsync foo bar/ $ ls -al bar total 0 drwxr-xr-x 3 skangas wheel 96 Sep 30 15:50 . drwxr-xr-x 4 skangas wheel 128 Sep 30 15:50 .. -rw-r--r-- 1 skangas wheel 0 Sep 30 15:50 foo