Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2000 10:19:31 -0400
From:      Alan Clegg <abc@bsdi.com>
To:        "Michael G." <mikegoe@earthlink.net>
Cc:        "questions@FreeBSD.ORG" <questions@FreeBSD.ORG>
Subject:   Re: strange mv
Message-ID:  <20001005101931.C10452@diskfarm.firehouse.net>
In-Reply-To: <200010051408.HAA28577@avocet.prod.itd.earthlink.net>; from mikegoe@earthlink.net on Thu, Oct 05, 2000 at 09:08:40AM -0500
References:  <Pine.BSF.4.10.10010050928190.284-100000@jane.cgu.chel.su> <200010051408.HAA28577@avocet.prod.itd.earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001005101931.C10452>