* Jim Meyering ([EMAIL PROTECTED]) wrote: > > $ 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? > > It depends on the semantics of the rename syscall. > And those semantics vary from system to system. > On older linux systems (probably 2.4.x, certainly 2.2.20, which > I've just tested) your mv command renames `a' to b/sym.
OK, as far as I can tell on the 2.6.x machines I've tried it on it doesn't. > Losing systems probably deserve a configure-time test and a rename > wrapper to correct for the unexpected behavior. Nod. Perhaps the warning needs a warning that it can't be relied on? 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 |_______/ _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
