Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#479764: shell builtin mv fails to move files across devices
- X-seq: zsh-workers 24949
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#479764: shell builtin mv fails to move files across devices
- Date: Tue, 06 May 2008 08:45:41 -0700
- Cc: 479764@xxxxxxxxxxxxxxx, martin f krafft <madduck@xxxxxxxxxx>
- In-reply-to: <20080506150303.GB31177@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080506144208.GA15225@xxxxxxxxxxxxxxxxx> <20080506150303.GB31177@xxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author