From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8212 invoked from network); 6 May 2008 15:46:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 May 2008 15:46:18 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 77831 invoked from network); 6 May 2008 15:46:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 May 2008 15:46:14 -0000 Received: (qmail 21902 invoked by alias); 6 May 2008 15:46:11 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24949 Received: (qmail 21890 invoked from network); 6 May 2008 15:46:10 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 6 May 2008 15:46:10 -0000 Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by bifrost.dotsrc.org (Postfix) with ESMTP id A765580ED172 for ; Tue, 6 May 2008 17:46:07 +0200 (CEST) Received: from torch.brasslantern.com ([71.116.113.54]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K0G00AF7EG7U2X0@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 06 May 2008 10:45:44 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m46Fjgo9001352; Tue, 06 May 2008 08:45:42 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m46Fjf0B001351; Tue, 06 May 2008 08:45:41 -0700 Date: Tue, 06 May 2008 08:45:41 -0700 From: Bart Schaefer Subject: Re: Bug#479764: shell builtin mv fails to move files across devices In-reply-to: <20080506150303.GB31177@scru.org> To: zsh-workers@sunsite.dk Cc: 479764@bugs.debian.org, martin f krafft Message-id: <080506084541.ZM1350@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20080506144208.GA15225@lapse.madduck.net> <20080506150303.GB31177@scru.org> Comments: In reply to Clint Adams "Re: Bug#479764: shell builtin mv fails to move files across devices" (May 6, 4:03pm) X-Virus-Scanned: ClamAV 0.91.2/7040/Tue May 6 03:52:15 2008 on bifrost X-Virus-Status: Clean On May 6, 4:03pm, Clint Adams wrote: } } Anyone up for changing this in a future version? } } Note that this mv will not move files across devices. Historical } versions of mv, when actual renaming is impossible, fall back on copying } and removing files; if this behaviour is desired, use cp and rm manually. } This may change in a future version. I'd rather we didn't. rename(2) is atomic, but there's no reasonable way to make cp+rm be so, and I think it's better if the user is forced to be aware of the issue. Also note that "cp" is (intentionally) NOT one of the commands supplied by the zsh/files module, so changing mv means implementing cp.