From owner-freebsd-bugs Mon Nov 20 19:24:17 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA17025 for bugs-outgoing; Mon, 20 Nov 1995 19:24:17 -0800 Received: from hub.org (hub.org [199.166.238.138]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA17017 for ; Mon, 20 Nov 1995 19:24:07 -0800 Received: (from scrappy@localhost) by hub.org (8.7.1/8.7.1) id WAA09027; Mon, 20 Nov 1995 22:22:01 -0500 (EST) Date: Mon, 20 Nov 1995 22:21:52 -0500 (EST) From: "Marc G. Fournier" To: Torbjorn Granlund cc: freebsd-bugs@freebsd.org Subject: Re: Bogus mv behaviour In-Reply-To: <199511201943.UAA01399@insanus.matematik.su.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@freebsd.org Precedence: bulk On Mon, 20 Nov 1995, Torbjorn Granlund wrote: > When moving directories across filesystems, e.g., "mv SOURCEDIR/A DESTDIR", > if DESTDIR/A exists, SOURCEDIR/A will be made into DESTDIR/A/A. That's very > surprising, in particular when many directories are moved in the same > command, and they end up at different levels. > Why is that surprising? Or do you think that if you do: mv SRCDIR/A-DIR DESTDIR/B-DIR that all the files in A-DIR should be moved into B-DIR itself instead of moving DIR-A into DIR-B? If I mv A-DIR to DESTDIR/A-DIR, I'm expecting that its the directory as a whole I'm moving, not the contents individually... Marc G. Fournier | Knowledge, Information and Communications, Inc (ki.net) scrappy@hub.org | soon to be: | scrappy@ki.net | For more information, send me email.