From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26988 invoked from network); 23 Jul 2004 16:51:30 -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 16:51:30 -0000 Received: (qmail 62522 invoked from network); 23 Jul 2004 16:51:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jul 2004 16:51:24 -0000 Received: (qmail 20018 invoked by alias); 23 Jul 2004 16:50:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7736 Received: (qmail 20008 invoked from network); 23 Jul 2004 16:50:40 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 23 Jul 2004 16:50:40 -0000 Received: (qmail 59676 invoked from network); 23 Jul 2004 16:48:42 -0000 Received: from rproxy.gmail.com (HELO mproxy.gmail.com) (64.233.170.196) by a.mx.sunsite.dk with SMTP; 23 Jul 2004 16:48:39 -0000 Received: by mproxy.gmail.com with SMTP id 77so8473rnl for ; Fri, 23 Jul 2004 09:48:35 -0700 (PDT) Received: by 10.38.83.57 with SMTP id g57mr100224rnb; Fri, 23 Jul 2004 09:48:35 -0700 (PDT) Message-ID: <23e98abb04072309486560f63e@mail.gmail.com> Date: Fri, 23 Jul 2004 12:48:35 -0400 From: matt m To: zsh-users@sunsite.dk Subject: scp and globbing in zsh Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 I migrated from bash to zsh about a month ago (loving it) and there is still one thing I cannot figure out. I would like to be able to use regex (at least the *) with scp. For example: $ 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. With no globbing set for scp the first command works but the second command fails. I could just put single quotes around the server path to get it to work with globbing but after many years of bash I am having trouble getting into the habbit of using single quotes with scp and it get's pretty frustrating. Is there a way to get this to work so that both of the above commands work as expected without having to use single quotes? Thanks for any input. -- allucid allucid@gmail.com