From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Query.
Date: Fri, 26 Feb 1999 09:14:34 -0700 (MST) [thread overview]
Message-ID: <199902261614.JAA11052@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <000001be6166$a11f63e0$cc000001@PC_VIGNAUD.xandmail.com> from "Vignaud Jean-Baptiste" at Feb 26, 99 10:01:42 am
>
> 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.
next prev parent reply other threads:[~1999-02-26 16:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-26 8:08 MIKASA problem Tom H.
1999-02-26 7:54 ` Jay.Estabrook
1999-02-26 8:55 ` Query mkttrn1
1999-02-26 9:01 ` Query Vignaud Jean-Baptiste
1999-02-26 9:09 ` Query mkttrn1
1999-02-26 16:14 ` Michal Jaegermann [this message]
1999-03-02 8:29 ` Query mkttrn1
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox