From owner-freebsd-questions Thu Oct 5 7:18: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from diskfarm.firehouse.net (rdu25-12-043.nc.rr.com [24.25.12.43]) by hub.freebsd.org (Postfix) with ESMTP id CE8C637B502 for ; Thu, 5 Oct 2000 07:18:05 -0700 (PDT) Received: (from abc@localhost) by diskfarm.firehouse.net (8.11.0/8.11.0) id e95EJVe11148; Thu, 5 Oct 2000 10:19:31 -0400 (EDT) (envelope-from abc) Date: Thu, 5 Oct 2000 10:19:31 -0400 From: Alan Clegg To: "Michael G." Cc: "questions@FreeBSD.ORG" Subject: Re: strange mv Message-ID: <20001005101931.C10452@diskfarm.firehouse.net> References: <200010051408.HAA28577@avocet.prod.itd.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <200010051408.HAA28577@avocet.prod.itd.earthlink.net>; from mikegoe@earthlink.net on Thu, Oct 05, 2000 at 09:08:40AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Unless the network is lying to me again, Michael G. said: > Doing some work as root, moving around some packages I dl'ed I made > two errors and am wondering what happened. First, I was moving > files into a subdirectory and used the wrong slash once (i.e. mv > myfile \subdir) and the file is now gone. No, it moved to a file called subdir in the current directory. The \ was ignored since it was not followed by any other "special" characters. > Second at one point I > typed 'mv ~root/myfile* ' and forgot the dot ..that file is gone > as well. Shouldn't I have gotten error messages instead? Not if there were exactly two files that matched the pattern ~root/myfile* In which case you typed (with expansion): mv ~root/myfile1 ~root/myfile2 Which is perfecly legal. AlanC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message