From owner-freebsd-current@FreeBSD.ORG Wed Nov 21 01:08:48 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3482F16A469 for ; Wed, 21 Nov 2007 01:08:48 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id E56BF13C43E for ; Wed, 21 Nov 2007 01:08:47 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 5DBDAEB17FE; Wed, 21 Nov 2007 09:08:50 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id o4BJpZL1uSoe; Wed, 21 Nov 2007 09:08:44 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 8AF9CEB0CF3; Wed, 21 Nov 2007 09:08:43 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:x-enigmail-version:content-type:content-transfer-encoding; b=F9jC1cPeiH26vgBAfqvV5bW+n68TbEWgCvElrfl+iHdBp+gcRLFXa3vNCeUWrrfFw E4q+fZNWQpsKbrDAKCBsw== Message-ID: <47438516.6060105@delphij.net> Date: Tue, 20 Nov 2007 17:08:38 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: freebsd-current@freebsd.org X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kensmith@freebsd.org Subject: Strange behavior of mv(1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2007 01:08:48 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, It seems that mv(1) behaves differently when handling with respect to different filesystems. Test1: Moving within one filesystem: mkdir -p t/a/b mkdir -p b/c/d cd t/ mv ../b a Resulting tree: t/ a/ b/ c/ d/ However, with different filesystems: mkdir -p t/a/b mkdir -p /tmp/b/c/d cd t mv /tmp/b a We get: t/ a/ b/ b/ c/ d/ I think the second behavior is not correct? Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHQ4UWhcUczkLqiksRAs2xAJ9SJJu7fM/ujzr3QDnbBrz3bdbp1QCg1RC4 7sJ5E/KHURXw5GZ2dtlDI5k= =Ftoi -----END PGP SIGNATURE-----