From owner-freebsd-questions@FreeBSD.ORG Fri Feb 8 15:57:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63EB516A418 for ; Fri, 8 Feb 2008 15:57:34 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 262B413C469 for ; Fri, 8 Feb 2008 15:57:33 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id m18Fs3Du035619; Fri, 8 Feb 2008 10:54:03 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id m18Fs3LH035618; Fri, 8 Feb 2008 10:54:03 -0500 (EST) (envelope-from jerrymc) Date: Fri, 8 Feb 2008 10:54:03 -0500 From: Jerry McAllister To: Pietro Cerutti Message-ID: <20080208155403.GF35348@gizmo.acns.msu.edu> References: <47AC2018.6010403@gahr.ch> <47AC3D71.4060409@gahr.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47AC3D71.4060409@gahr.ch> User-Agent: Mutt/1.4.2.2i Cc: Wouter Oosterveld , freebsd-questions@freebsd.org Subject: Re: rename and chmod (was: cp -p) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2008 15:57:34 -0000 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 >