bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in mv in Linux (RH9)


From: Paul Jarc
Subject: Re: Bug in mv in Linux (RH9)
Date: Thu, 04 Dec 2003 17:13:23 -0500
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Johan Glimming <address@hidden> wrote:
> $ cd ~
> $ mkdir a a/b
> $ ln -s a/b b
> $ echo > a/b/y
> $ cd b
> $ mv x ..              (or: cp x ..)
>
> The problem here is that x now is in the directory ~/a rather
> than ~ as one would expect, having entered b from ~.

This is not a bug.  mv does not treat the destination ".." specially;
like any other path, its meaning is determined by the filesystem.
Also, mv has no way of knowing how you reached the directory you're
in, so even if it were to treat ".." specially, there's no way to get
the effect you want.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]