rename and chmod (was: cp -p)
Wouter Oosterveld
wouter at fizzyflux.nl
Fri Feb 8 11:54:08 UTC 2008
> >> 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 at berenboot.xs4all.nl is binnenkort niet meer,
wouter at fizzyflux.nl is mijn nieuwe email-adres.
]
--
[
wouter at berenboot.xs4all.nl is binnenkort niet meer,
wouter at fizzyflux.nl is mijn nieuwe email-adres.
]
More information about the freebsd-questions
mailing list