From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12454 invoked from network); 23 Jul 2004 17:26:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Jul 2004 17:26:07 -0000 Received: (qmail 1637 invoked from network); 23 Jul 2004 17:26:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jul 2004 17:26:01 -0000 Received: (qmail 3771 invoked by alias); 23 Jul 2004 17:25:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7740 Received: (qmail 3760 invoked from network); 23 Jul 2004 17:25:16 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 23 Jul 2004 17:25:16 -0000 Received: (qmail 97301 invoked from network); 23 Jul 2004 17:23:19 -0000 Received: from rproxy.gmail.com (HELO mproxy.gmail.com) (64.233.170.195) by a.mx.sunsite.dk with SMTP; 23 Jul 2004 17:23:16 -0000 Received: by mproxy.gmail.com with SMTP id m68so12172rne for ; Fri, 23 Jul 2004 10:23:11 -0700 (PDT) Received: by 10.38.89.74 with SMTP id m74mr111042rnb; Fri, 23 Jul 2004 10:23:11 -0700 (PDT) Message-ID: <23e98abb040723102373e5d2ca@mail.gmail.com> Date: Fri, 23 Jul 2004 13:23:11 -0400 From: matt m To: zsh-users@sunsite.dk Subject: Re: scp and globbing in zsh In-Reply-To: <200407231705.i6NH57hG007590@news01.csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200407231705.i6NH57hG007590@news01.csr.com> X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Fri, 23 Jul 2004 18:05:06 +0100, Peter Stephenson wrote: > matt m wrote: > > $ scp someserver:~/tmp/*.txt . > > $ scp *.txt someserver:~/tmp/ > > > > The first one fails with globbing because it seems to be looking for > > ~/tmp/*.txt on my local machine instead of the remote machine but the > > second command works fine. > > Zsh is set by default to report an error when any pattern match fails. > You probably want to pass through any unrecognised patterns to the > command. You can do that with: > > setopt nonomatch That's just what I was looking for, thank you. -- allucid allucid@gmail.com