Date: Sun, 3 Sep 2006 20:12:17 -0500 From: "hackmiester (Hunter Fuller)" <hackmiester@hackmiester.com> To: James Long <list@museum.rain.com> Cc: freebsd-questions@freebsd.org Subject: Re: man page bug in mv(1) ? Message-ID: <F4052F28-CF8F-4737-8B97-241D77A1F283@hackmiester.com> In-Reply-To: <20060903173729.GA30869@ns.museum.rain.com> References: <20060903173729.GA30869@ns.museum.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F4052F28-CF8F-4737-8B97-241D77A1F283>