scp question

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Kevin Buettner
Dátum:  
Új témák: 4 packages not fully installed or removed
Tárgy: scp question
On Sep 12, 12:59am, der.hans wrote:

> Am 11. Sep, 2003 schw=E4tzte Kurt Granroth so:
> =


> > This problem is due to the interaction with the shell. When you spec=

ify a
> > wildcard on the command line, the shell will try to expand it out BEF=

ORE
> > sending it to the command. So you may be intending the '*' to be pas=

sed to
> > scp as-is.. but it's not, it's expanded out (to nothing in your case)=

first.
> =


> That is true in most cases, but if it encounters a colon it won't expan=

d the
> glob as it presumes that's for the remote machine.


I'm not convinced of this. Here's a counterexample (using bash as the
shell):

    ocotillo:testdir$ touch foo foo:bar foo:foo
    ocotillo:testdir$ echo foo:*
    foo:bar foo:foo


Kevin