From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9289 invoked from network); 23 Jul 2004 17:40:18 -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:40:18 -0000 Received: (qmail 10242 invoked from network); 23 Jul 2004 17:40:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jul 2004 17:40:11 -0000 Received: (qmail 7306 invoked by alias); 23 Jul 2004 17:39:27 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7741 Received: (qmail 7296 invoked from network); 23 Jul 2004 17:39:27 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 23 Jul 2004 17:39:27 -0000 Received: (qmail 8697 invoked from network); 23 Jul 2004 17:37:29 -0000 Received: from dsl3-63-249-88-2.cruzio.com (HELO binome.blorf.net) (63.249.88.2) by a.mx.sunsite.dk with SMTP; 23 Jul 2004 17:37:27 -0000 Received: by binome.blorf.net (Postfix, from userid 1000) id B608EDC7; Fri, 23 Jul 2004 10:37:25 -0700 (PDT) Date: Fri, 23 Jul 2004 10:37:25 -0700 From: Wayne Davison To: Peter Stephenson Cc: zsh-users@sunsite.dk Subject: Re: scp and globbing in zsh Message-ID: <20040723173725.GC11633@blorf.net> References: <23e98abb04072309486560f63e@mail.gmail.com> <200407231705.i6NH57hG007590@news01.csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407231705.i6NH57hG007590@news01.csr.com> User-Agent: Mutt/1.5.6+20040523i 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, Jul 23, 2004 at 06:05:06PM +0100, Peter Stephenson wrote: > 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 does have the consequence of not telling you when you actually mistype a local match pattern. I prefer to leave nomatch set and to manually quote wildcards that need to be expanded remotely. You'd either use quotes or a backslash, like this: $ scp someserver:tmp/\*.txt . (Note that the leading "~/" isn't needed since ssh defaults to being in your home directory.) Just my 2 cents. ..wayne..