zsh-users
 help / color / mirror / code / Atom feed
From: Eike von Seggern <eikevons@yahoo.de>
To: zsh-users@zsh.org
Subject: Re: problem with zsh and wildcards in scp commands
Date: Sun, 17 Mar 2013 13:33:08 +0100	[thread overview]
Message-ID: <20130317123308.GA6254@marlov> (raw)
In-Reply-To: <1363517161.73898.YahooMailNeo@web140003.mail.bf1.yahoo.com>

Hi John,

you need to escape the *, e.g. by putting it into quotes:

scp "user@host:/path/to/*" .

Otherwise zsh tries to expand it on your local machine and fails, hence
the "zsh:…" message. Note that zsh's default behaviour differs here from
bash in that bash inserts a literal * if the glob-expansion failed while
zsh returns with the error you've encountered.

Best
Eike


On Sun, Mar 17, 2013 at 03:46 -0700, John wrote:
> I am using graysky's zsh config files which can be found on his github: https://github.com/graysky2/configs/tree/master/shell
> 
> When I try to scp wildcards from remote servers, I get errors:
> 
> 
> % scp facade@gogo:~/*.xz .
> zsh: no matches found: facade@gogo:~/*.xz
> 
> But if I do it without wildcards, no problems ...why :)
> 
> % scp facade@gogo:~/webcam.tar.xz .
> webcam.tar.xz                                                                                 100%  928KB 464.1KB/s   00:02    


  reply	other threads:[~2013-03-17 12:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-17 10:46 John
2013-03-17 12:33 ` Eike von Seggern [this message]
2013-03-18 13:47   ` Vincent Lefevre
2013-03-17 16:03 John
2013-03-17 16:20 ` Jérémie Roquet
2013-03-17 16:24   ` John
2013-03-17 16:31     ` Jérémie Roquet
2013-03-17 16:55       ` Valodim Skywalker
2013-03-17 19:21 John

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130317123308.GA6254@marlov \
    --to=eikevons@yahoo.de \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).