From: bush@ecs.ox.ac.uk (Mark Bush) Subject: Re: BUG of feature: cannot move `foo' accross file systems Date: 6 Jan 1993 11:11:45 GMT
In article <DJM.93Jan5151115@frob.eng.umd.edu> djm@eng.umd.edu (David J. MacKenzie) writes:
#Yeah, it's just a deficiency in GNU mv. POSIX.2 says that mv should
#basically do "cp -R" and remove the source files. POSIX requires mv
#to move whole directory trees across filesystems, not just symlinks!
#To do that, I want to make the guts of GNU cp into a module that both
#cp and mv can call. But that's a nontrivial amount of work that's
#never gotten important enough for me to do.
Sounds like you want to replace `mv' with a shell script which does a `tar'
to `tar' copy, then, with appropriate checking to see if the remote target
is a file or directory. Or use `cpio'. Or maybe a `find', which does The
Right Thing for each type of file it comes across. Or...
Seems a waste to incorperate all this functionality into `mv'.
Mark