Thomas Hood <[EMAIL PROTECTED]> wrote: > found 107006 5,93-5 > stop > >> mv does not follow the rules for pathname resolution (Base >> Definitions, Glossary) specified by SUSv2 or the current POSIX >> draft (XBD 4.11, XRAT A.4.11). >> >> Here is an example where '/bin/mv foo-ln/. bar' shuold be >> equivalent to '/bin/mv foo bar': >> >> /bin/mkdir foo >> /bin/ln -s foo foo-ln >> /bin/mv foo-ln/. bar > > > mv still refuses to rename foo in this case. Whether or not this > is a bug, I don't know. > > $ /bin/mkdir foo > $ /bin/ln -s foo foo-ln > $ /bin/mv foo-ln/. bar > /bin/mv: cannot move `foo-ln/.' to `bar': Device or resource busy > $ /bin/mv --version > mv (GNU coreutils) 5.93
mv is merely echoing what rename does with those same arguments. In my opinion, rename and mv are working properly in this case. Regarding POSIX, here's a sentence from the RATIONALE: Renaming dot or dot-dot is prohibited in order to prevent cyclical file system paths. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

