Make "rename" command an alias for "mv"?
Martin Pool
martinpool at gmail.com
Tue Oct 25 00:19:34 BST 2005
On 24/10/05, Matthieu Moy <Matthieu.Moy at imag.fr> wrote:
> People used to unix's "mv" command like to have a single command for
> this, but for other people, "move" a file and "rename" a file are two
> distinct operations (see how you rename a file and how you move it to
> a distinct directory in a graphical file manager for example - and
> remember that bzr is supposed to be usable on Windows and therefore
> by windows users).
Perhaps as John says it will be enough to just have move and rename as
aliases. If we make sure that 'bzr mv foo bar/' fails with the
trailing slash unless bar is a directory then it can satisfy everyone.
It seems that splitting them annoys more people than it pleases?
> I've teached the basis of unix to people in 1st year of engineering
> school, and most students had difficulties to understand the unix "mv"
> unification.
Yes, I've seen that too, which was why I wanted them to be different
-- that and annoyance with mv moving when I wanted rename to fail
because the destination name given was an existing directory.
> Martin considered this "mv" was mostly nocive [harmful] and did a
> separate "move" and "rename". I'm glad that the unixish version is
> also available.
--
Martin
More information about the bazaar
mailing list