Date: Fri, 8 Feb 2008 12:54:06 +0100 From: "Wouter Oosterveld" <wouter@fizzyflux.nl> To: freebsd-questions@freebsd.org Subject: rename and chmod (was: cp -p) Message-ID: <b4950de90802080354o48ab9b0fs1e11c5cf70417980@mail.gmail.com> In-Reply-To: <b4950de90802080351u34c1264cidd682471a58b3e6f@mail.gmail.com> References: <47AC2018.6010403@gahr.ch> <b4950de90802080328w1ef8c2c8if87c93381fbef7a0@mail.gmail.com> <47AC3D71.4060409@gahr.ch> <b4950de90802080351u34c1264cidd682471a58b3e6f@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> >> 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? No. This has nothing to do with logics but with your premisses, the implementation of mv and standards (IEEE Std 1003.2 (``POSIX.2'')). It just behaves different than you would expect, but that is no logical error. > > Regards, > > > > Wouter > > > -- > Pietro Cerutti > > PGP Public Key: > http://gahr.ch/pgp > > > -- [ wouter@berenboot.xs4all.nl is binnenkort niet meer, wouter@fizzyflux.nl is mijn nieuwe email-adres. ] -- [ wouter@berenboot.xs4all.nl is binnenkort niet meer, wouter@fizzyflux.nl is mijn nieuwe email-adres. ]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b4950de90802080354o48ab9b0fs1e11c5cf70417980>