From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 26020 invoked from network); 26 Feb 1999 16:15:59 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 26 Feb 1999 16:15:59 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA16904 for ; Fri, 26 Feb 1999 11:14:37 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id JAA11052 for axp-list@redhat.com; Fri, 26 Feb 1999 09:14:34 -0700 From: Michal Jaegermann Message-Id: <199902261614.JAA11052@ellpspace.math.ualberta.ca> Subject: Re: Query. To: axp-list@redhat.com Date: Fri, 26 Feb 1999 09:14:34 -0700 (MST) In-Reply-To: <000001be6166$a11f63e0$cc000001@PC_VIGNAUD.xandmail.com> from "Vignaud Jean-Baptiste" at Feb 26, 99 10:01:42 am Content-Type: text > > for example, cd in "/where/you/want/to/copy/the/stuff/" and type > mcopy a:\* A target above is forgotten and if the last argument on an expansion list will happen to be a directory, or worse - an expansion will result in two file names, then the above will do something else than what you expected. Beware! And eeek! Don't use backslashes like that. Remember that you are typing that to a shell on Unix/Linux side and that backslash there means an escape character and not a path separator. 'mtools' will accept forward slash in this role as well. If you really meant a literal backslash here you would have to escape (double backslash) or quote it; Now, due to shell expansion rules and the way how mtools interpret their arguments the above and also mcopy 'a:\*' mcopy 'a:*' mcopy a:/'*' mcopy a:* most of the time happen to be equivalent (it is left as an exercise to the reader why, what other forms are ok and when the last one will fail). But if you will happen to type mcopy a:\this\that\* . you will be most likely disappointed with results. This most often hits Samba users which suffer from acute backslashitis and forget that \\host\share does not mean what they think it means (you may use forward slashes with Samba if you do not want to qoute or type \\\\host\\share). Michal p.s. The original poster may really meant to use \ as an escape character, to get a literal '*', but somehow I doubt that due to a missing copy target. p.p.s. I did not check if mcopy will work between two files on a floppy. If not than an expansion to two names is harmless - by a pure accident. Do not rely on this.