[Coco] No easy rename on OS-9 ?

Brett Gordon beretta42 at gmail.com
Sun Mar 30 21:49:04 EDT 2014


On Fri, Mar 28, 2014 at 7:27 PM, Gene Heskett <gheskett at wdtv.com> wrote:

> On Friday 28 March 2014 19:20:57 Luis Antoniosi (CoCoDemus) did opine:
>
> > it turns out that there is a mv on rtsi:
> >
> > ftp://www.rtsi.com/OS9/OS9_6X09/UTILITIES/mv.ar
> >
> Yup, looked at it. It does the move by copying it to the target location,
> then deleting it from the source location. Needlessly complex, subject to
> disk errors etc, when all you really need to do is pick up the $20 bytes of
> the source directory entry and put it in the target directory.  The
> directory entry is moved, but not even the FD sector is moved.  Then go
> back and null the first byte of the source dir, and to be complete, run
> dsort on both directories.
>
>
Too bad OS9 doesn't include an interface for moving files.  A legal
user-space program can only copy the file.  I thought that was odd too.  I
guess MV isn't worthy enough for a syscall.

Brett



More information about the Coco mailing list