From unknown Mon Jun 23 23:55:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44645: dired-do-rename: check before asking doomed command Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Nov 2020 20:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44645 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44645@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160538580710775 (code B ref -1); Sat, 14 Nov 2020 20:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2020 20:30:07 +0000 Received: from localhost ([127.0.0.1]:52114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ke2BT-0002nd-0f for submit@debbugs.gnu.org; Sat, 14 Nov 2020 15:30:07 -0500 Received: from lists.gnu.org ([209.51.188.17]:42266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ke2BR-0002mV-Fh for submit@debbugs.gnu.org; Sat, 14 Nov 2020 15:30:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ke2BR-00021Q-AD for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 15:30:05 -0500 Received: from bumble.birch.relay.mailchannels.net ([23.83.209.25]:12036) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ke2BP-0000Y9-Cz for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 15:30:05 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id BAFE764057A for ; Sat, 14 Nov 2020 20:30:01 +0000 (UTC) Received: from pdx1-sub0-mail-a72.g.dreamhost.com (100-100-138-37.trex.outbound.svc.cluster.local [100.100.138.37]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 32CD36402B2 for ; Sat, 14 Nov 2020 20:30:01 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a72.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.10); Sat, 14 Nov 2020 20:30:01 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Eight-Fumbling: 1d5244895a1f0706_1605385801421_455770119 X-MC-Loop-Signature: 1605385801421:1545109256 X-MC-Ingress-Time: 1605385801421 Received: from pdx1-sub0-mail-a72.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a72.g.dreamhost.com (Postfix) with ESMTP id EBBCC7ED3C for ; Sat, 14 Nov 2020 12:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=rqHzNIggsO20LxI1Xo C/AJOcCNs=; b=TXn3QxwBpcug+dhct+VibtF+Ir4MB45ARGYqYMyn53yetLUPXt 8zEL4JIS9vd653Gm/ksvd99IqIR1zgoBiBIjmFsjHI8vfsCxKmJx9+Ojd8pTpgIC mSmwfgQF0SMGWQePC7REP0N6LR+EDph5VmRcUKzGexDYtUWX58FyDzYuA= Received: from jidanni.org (220-140-7-179.dynamic-ip.hinet.net [220.140.7.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a72.g.dreamhost.com (Postfix) with ESMTPSA id AC7A27E691 for ; Sat, 14 Nov 2020 12:30:00 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a72 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Date: Sun, 15 Nov 2020 04:17:42 +0800 Message-ID: <874klrk80p.8.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=23.83.209.25; envelope-from=jidanni@jidanni.org; helo=bumble.birch.relay.mailchannels.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/14 15:30:01 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Create a directory, then move it to /tmp. Then do that all a second time. R runs the command dired-do-rename. It should do some check before asking about command doomed to fail: Overwrite =E2=80=98/tmp/google-chrome-unstable=E2=80=99? [Type yn!q or C-= h] y Move: =E2=80=98/home/jidanni/.config/google-chrome-unstable=E2=80=99 to =E2= =80=98/tmp/google-chrome-unstable=E2=80=99 failed: (file-already-exists File exists /tmp/google-chrome-unstable) Also that last line, (file-already-exists File exists /tmp/google-chrome-unstable) ^^^^ ^^^^^^ ^^^^ ^^^^^^ seems to repeat itself. (Looks bad.) (Also aren't these directories, not just files?) OK, trying again with the shell $ mv -i .config/google-chrome-unstable/ /tmp/ mv: overwrite '/tmp/google-chrome-unstable'? y mv: inter-device move failed: '.config/google-chrome-unstable/' to '/tmp/google-chrome-unstable'; unable to remove target: Directory not emp= ty OK, I guess checking too much ahead every time isn't worth the overhead. If so, close this bug. emacs-version "27.1" From unknown Mon Jun 23 23:55:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44645: dired-do-rename: check before asking doomed command Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Nov 2020 23:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44645 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 44645@debbugs.gnu.org Received: via spool by 44645-submit@debbugs.gnu.org id=B44645.160556765429054 (code B ref 44645); Mon, 16 Nov 2020 23:01:01 +0000 Received: (at 44645) by debbugs.gnu.org; 16 Nov 2020 23:00:54 +0000 Received: from localhost ([127.0.0.1]:57679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kenUT-0007YD-Vp for submit@debbugs.gnu.org; Mon, 16 Nov 2020 18:00:54 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kenUR-0007RH-Cg for 44645@debbugs.gnu.org; Mon, 16 Nov 2020 18:00:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gi4VtiGS0iR8KM05tWv0T/6cHBnhPxfuS5B49UTuv7A=; b=iRp+pXHvbuIQRJHDi3UQciCsz8 pkqLoohup3QUqHeaEjCynZhjOdtCiLxiQrHUTfxgFcSPwfunrLGK/JMhMNccVoF0E+lKQ10A7QJQ2 D04mxPZ+3WKZPNtiXzRPaDUo3qYfCQmZDZR4GCwbpk2PRaZgDhg5RUSAA5vtXDmE/TGE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kenUI-0006vo-HR; Tue, 17 Nov 2020 00:00:45 +0100 From: Lars Ingebrigtsen References: <874klrk80p.8.fsf@jidanni.org> X-Now-Playing: Yes's _The Yes Album_: "Starship Trooper: Life Seeker; Disillusion; =?UTF-8?Q?W=C3=BCrm?=" Date: Tue, 17 Nov 2020 00:00:41 +0100 In-Reply-To: <874klrk80p.8.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Sun, 15 Nov 2020 04:17:42 +0800") Message-ID: <874kloucti.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson writes: > OK, I guess checking too much ahead every time isn't worth the overhead. > If so, close this bug. And there may be more than one file/directory in the move, and some may fail and some may not, so I think the checking is in the correct place, and I'm closing this bug report. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > OK, I guess checking too much ahead every time isn't worth the overhead. > If so, close this bug. And there may be more than one file/directory in the move, and some may fail and some may not, so I think the checking is in the correct place, and I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 16 18:01:02 2020 Received: (at control) by debbugs.gnu.org; 16 Nov 2020 23:01:02 +0000 Received: from localhost ([127.0.0.1]:57683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kenUc-0007gR-Am for submit@debbugs.gnu.org; Mon, 16 Nov 2020 18:01:02 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kenUX-0007WZ-7N for control@debbugs.gnu.org; Mon, 16 Nov 2020 18:01:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NNtaks15HyS7wxpPbo0yLtRIp8vKy43vDbxq793geXY=; b=Ksx0fH9arKVEN5/QhFMOJBgLuV 2dmrIor+M6maLiQEXfA36y+vImYRbv7K2SXr+MpGTdvTerdTO9XIeDWRsBSFk/JHKfdXxGSgwBmrV zfWZ6bsU0rTr/9wtRAiLQJ0uSCJbvjgUEmhLm47Lg33fwwg5z/7bmCIlBs2SimZrhm/o=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kenUP-0006vx-FY for control@debbugs.gnu.org; Tue, 17 Nov 2020 00:00:51 +0100 Date: Tue, 17 Nov 2020 00:00:48 +0100 Message-Id: <873618uctb.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #44645 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 44645 notabug close 44645 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 44645 notabug close 44645 quit