From owner-freebsd-questions@FreeBSD.ORG Mon Sep 4 01:12:23 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02BAA16A4DA for ; Mon, 4 Sep 2006 01:12:23 +0000 (UTC) (envelope-from hackmiester@hackmiester.com) Received: from smtpout05-04.prod.mesa1.secureserver.net (smtpout05-04.prod.mesa1.secureserver.net [64.202.165.221]) by mx1.FreeBSD.org (Postfix) with SMTP id 694BB43D46 for ; Mon, 4 Sep 2006 01:12:19 +0000 (GMT) (envelope-from hackmiester@hackmiester.com) Received: (qmail 21979 invoked from network); 4 Sep 2006 01:12:19 -0000 Received: from unknown (70.146.217.210) by smtpout05-04.prod.mesa1.secureserver.net (64.202.165.221) with ESMTP; 04 Sep 2006 01:12:19 -0000 In-Reply-To: <20060903173729.GA30869@ns.museum.rain.com> References: <20060903173729.GA30869@ns.museum.rain.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "hackmiester (Hunter Fuller)" Date: Sun, 3 Sep 2006 20:12:17 -0500 To: James Long X-Mailer: Apple Mail (2.752.2) Cc: freebsd-questions@freebsd.org Subject: Re: man page bug in mv(1) ? 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: Mon, 04 Sep 2006 01:12:23 -0000 On 3 September 2006, at 12:37, James Long wrote: > The man page mv(1) states: > > "It is an error for either the source operand or the destination path > to specify a directory unless both do." > > > However: > > mv file /tmp/ > > works. Am I reading things wrong, or is the man page incorrect? I think what it means is you cannot move a directory to a file. You also can't move a file so it becomes a directory. FOr example: snowy:~ hackmiester$ mv blah blahdir/ mv: rename blah to blahdir/: No such file or directory You are actually moving the file INTO the directory, not trying to make a file BE a directory. See what I mean? > > > Jim > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" >