Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: turn off globbing sometimes



What you could do is have two commands, one being an alias to
noglob scp
and the other being vanilla scp
So like:

alias pcp='noglob scp'

pcp remote:foo/* .
scp * remote:foo/

Just a thought.

On 6/26/07, Richard Hartmann <richih.mailinglist@xxxxxxxxx> wrote:


> alias command="noglob command"

How could I turn globbing off for the _remote_ part of scp?

I.e.
scp remote:foo/* .
should not expand, while
scp * remote:foo/
should expand normally. Any ideas?


Richard


--
-fREW



Messages sorted by: Reverse Date, Date, Thread, Author