Date: Fri, 8 Feb 2008 10:54:03 -0500 From: Jerry McAllister <jerrymc@msu.edu> To: Pietro Cerutti <gahr@gahr.ch> Cc: Wouter Oosterveld <wouter@fizzyflux.nl>, freebsd-questions@freebsd.org Subject: Re: rename and chmod (was: cp -p) Message-ID: <20080208155403.GF35348@gizmo.acns.msu.edu> In-Reply-To: <47AC3D71.4060409@gahr.ch> References: <47AC2018.6010403@gahr.ch> <b4950de90802080328w1ef8c2c8if87c93381fbef7a0@mail.gmail.com> <47AC3D71.4060409@gahr.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 08, 2008 at 12:30:57PM +0100, Pietro Cerutti wrote: > Wouter Oosterveld wrote: > >> Now, from a logical point of view, why moving a file into a directory > > doesn't fall into the "created into them" case? > > > > Because (if on the same filesystem) you don't create a new file. You > > just link the file in the destination dir and unlink the file from the > > source dir. > > Exactly. But from a /*logical*/ point of view, shouldn't this case be > treated /*as if*/ the file was created inside the target directory? Not if you use mv. If you use cp, then it could. By definition, mv only moves the pointer/link or whatever it is called and doesn't change anything else. ////jerry > > > > > Regards, > > > > Wouter > > > -- > Pietro Cerutti > > PGP Public Key: > http://gahr.ch/pgp >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080208155403.GF35348>