home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!comlab.ox.ac.uk!bush
- From: bush@ecs.ox.ac.uk (Mark Bush)
- Newsgroups: comp.os.linux
- Subject: Re: BUG of feature: cannot move `foo' accross file systems
- Message-ID: <1993Jan6.111145.1392@thom5.ecs.ox.ac.uk>
- Date: 6 Jan 93 11:11:45 GMT
- References: <1993Jan3.214155.25253@klaava.Helsinki.FI> <1993Jan5.100758.21535@klaava.Helsinki.FI> <DJM.93Jan5151115@frob.eng.umd.edu>
- Organization: Oxford University Computing Laboratory
- Lines: 16
- Originator: bush@thom5.ecs.ox.ac.uk
-
- 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
-