From owner-freebsd-questions@FreeBSD.ORG Sun Sep 10 15:09:52 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 4F6E016A415 for ; Sun, 10 Sep 2006 15:09:52 +0000 (UTC) (envelope-from jan.grant@bristol.ac.uk) Received: from diri.bris.ac.uk (diri.bris.ac.uk [137.222.10.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 342DC43D6A for ; Sun, 10 Sep 2006 15:09:47 +0000 (GMT) (envelope-from jan.grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by diri.bris.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GMQwG-0000n8-PV; Sun, 10 Sep 2006 16:09:47 +0100 Received: from cse-jg.cse.bris.ac.uk ([137.222.12.37]:60225) by mail.ilrt.bris.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50) id 1GMQwA-0000rF-LK; Sun, 10 Sep 2006 16:09:38 +0100 Date: Sun, 10 Sep 2006 16:09:34 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@tribble.ilrt.bris.ac.uk To: James Long In-Reply-To: <20060903173729.GA30869@ns.museum.rain.com> Message-ID: <20060910160830.L30289@tribble.ilrt.bris.ac.uk> References: <20060903173729.GA30869@ns.museum.rain.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spamassassin: mail.ilrt.bris.ac.uk X-Spam-Score: 0.0 X-Spam-Level: / X-Spam-Score: -1.2 X-Spam-Level: - 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: Sun, 10 Sep 2006 15:09:52 -0000 On Sun, 3 Sep 2006, 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? The man page is correct, but a little misleading unless you read it carefully. The first two paragraphs of the description section define the term "destination path". -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ Solution: (n) a watered-down version of something neat.