zsh-users
 help / color / mirror / code / Atom feed
From: matt m <allucid@gmail.com>
To: zsh-users@sunsite.dk
Subject: scp and globbing in zsh
Date: Fri, 23 Jul 2004 12:48:35 -0400	[thread overview]
Message-ID: <23e98abb04072309486560f63e@mail.gmail.com> (raw)

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


             reply	other threads:[~2004-07-23 16:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23 16:48 matt m [this message]
2004-07-23 17:05 ` Peter Stephenson
2004-07-23 17:23   ` matt m
2004-07-23 17:37   ` Wayne Davison
2004-07-23 17:47 ` Bart Schaefer
2004-07-23 20:24   ` Vincent Lefevre
2004-07-24 18:35     ` Bart Schaefer

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=23e98abb04072309486560f63e@mail.gmail.com \
    --to=allucid@gmail.com \
    --cc=zsh-users@sunsite.dk \
    /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).