[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mv trailing slash warning
From: |
Dr. David Alan Gilbert |
Subject: |
mv trailing slash warning |
Date: |
Sun, 25 Sep 2005 20:36:48 +0100 |
User-agent: |
Mutt/1.5.6+20040907i |
Hi,
In the info pages for 'mv' is the following statement:
---------------------------------------------------------------------------
_Warning_: If you try to move a symlink that points to a directory,
and you specify the symlink with a trailing slash, then `mv' doesn't
move the symlink but instead moves the directory referenced by the
symlink. *Note Trailing slashes::.
---------------------------------------------------------------------------
Hmm ok - so I try:
$ mkdir a b
$ ln -s $PWD/a sym
$ mv sym/ b
mv: cannot move `sym/' to `b/sym': Not a directory
The 'mv' is straight out of recent cvs. I'm in an ext3 filesystem
on Linux (Ubuntu).
Am I misunderstanding something about that warning or is this
a bug?
Dave
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux on Alpha,68K| Happy \
\ gro.gilbert @ treblig.org | MIPS,x86,ARM,SPARC,PPC & HPPA | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
- mv trailing slash warning,
Dr. David Alan Gilbert <=
- Re: mv trailing slash warning, Jim Meyering, 2005/09/25
- Re: mv trailing slash warning, Dr. David Alan Gilbert, 2005/09/26
- Re: mv trailing slash warning, Eric Blake, 2005/09/27
- Re: mv trailing slash warning, Jim Meyering, 2005/09/28
- Re: mv trailing slash warning, Paul Eggert, 2005/09/28
- Re: mv trailing slash warning, Jim Meyering, 2005/09/28
- Re: mv trailing slash warning, Paul Eggert, 2005/09/28