[FIX] primRename:toBe: on MacFileDirectory

Jarvis, Robert P. (Contingent) Jarvisb at timken.com
Tue Apr 10 18:55:43 UTC 2001


> -----Original Message-----
> From: Tom [mailto:tmb at lumo.com]
> Sent: Tuesday, April 10, 2001 2:37 PM
> To: acs at campus.com
> Subject: Re: [FIX] primRename:toBe: on MacFileDirectory
> 
> 
> On Tue, Apr 10, 2001 at 01:52:05PM -0400, Andy Stoffel wrote:
> > - In most Unix variants (this includes Linux) mv (move) is
> >   used to move a file but can also be used to rename a file
> >   at the same time when it is being moved to the directory
> >   it already exists in.
> > 
> > - In MacOS (versions previous to X, which is really a Unix 
> >   variant) renaming a file does JUST that while a move
> >   does only that.
> 
> The behavior of "mv" is a convenience feature implemented by the user
> program; the kernel has link/unlink, rename, and open/read/write.  
> 
> "mv" tries to behave transparently in both cases because in UNIX, file
> systems can be mounted anywhere, transparent to the user.  In Windows
> and MacOS this is less of an issue because the OS makes it painfully
> obvious when your data resides on different file systems.

Under NT, and perhaps under other Win variants as well, the "move" command
will move and rename files across directories, disks, and machines.

IMHO Squeak should behave consistently across platforms.

Bob Jarvis
Compuware @ Timken





More information about the Squeak-dev mailing list