Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: problem with zsh and wildcards in scp commands
- X-seq: zsh-users 17705
- From: Eike von Seggern <eikevons@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: problem with zsh and wildcards in scp commands
- Date: Sun, 17 Mar 2013 13:33:08 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1363523590; bh=ZUZEzWVikSDAChy7tvD7MJQPt7+KUB+Byrjt5KC+6Do=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:Content-Transfer-Encoding:In-Reply-To:User-Agent; b=HlvMqbXkf0vHe+ExQ/0Yz/iQywa+IrErzKerDfLiqedzcPE9XiYr94lIY6/oUvdID/yO120o+9h8pjp1Lo63kvQJkmmkbfGsDCL00XpOieO//8rOafofoNJzFQfi3vN+F6ZTWiMB4UHqgTeYRMoBsCRJ/WhJeep1irIiSKEB018=
- In-reply-to: <1363517161.73898.YahooMailNeo@web140003.mail.bf1.yahoo.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author