zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Cc: 479764@bugs.debian.org, martin f krafft <madduck@debian.org>
Subject: Re: Bug#479764: shell builtin mv fails to move files across devices
Date: Tue, 06 May 2008 08:45:41 -0700	[thread overview]
Message-ID: <080506084541.ZM1350@torch.brasslantern.com> (raw)
In-Reply-To: <20080506150303.GB31177@scru.org>

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.


  reply	other threads:[~2008-05-06 15:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080506144208.GA15225@lapse.madduck.net>
2008-05-06 15:03 ` Clint Adams
2008-05-06 15:45   ` Bart Schaefer [this message]
2008-05-06 16:55     ` martin f krafft
2008-05-06 20:52       ` Peter Stephenson
2008-05-06 20:55       ` Phil Pennock
2008-05-07 21:30         ` Vincent Lefevre
2008-05-07 21:47           ` Phil Pennock
2008-05-07 22:50             ` Vincent Lefevre
2008-05-07 23:03               ` martin f krafft
2008-05-08  3:23                 ` Vincent Lefevre
2008-05-08  9:34                   ` Stephane Chazelas
2008-05-07 22:06           ` Mikael Magnusson
2008-05-07 22:57             ` Vincent Lefevre
2008-05-06 18:52   ` Stephane Chazelas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=080506084541.ZM1350@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=479764@bugs.debian.org \
    --cc=madduck@debian.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).