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

Re: problem with zsh and wildcards in scp commands



Thank you.  Perhaps an alias ?

alias scp='noglob scp'


----- Original Message -----
> From: Jérémie Roquet <arkanosis@xxxxxxxxx>
> To: John <da_audiophile@xxxxxxxxx>
> Cc: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
> Sent: Sunday, March 17, 2013 12:20 PM
> Subject: Re: problem with zsh and wildcards in scp commands
> 
> Hi,
> 
> 2013/3/17 John <da_audiophile@xxxxxxxxx>:
>>  Thank you. Can zsh be modified easily in a config file to behave as bash 
> with scp?
> 
> unsetopt nomatch
> 
> I wouldn't advice to use this, however, as it still wouldn't do what
> you expect it to do if the expansion is possible locally.
> 
> You should rather use something like “noglob scp facade@gogo:~/*.xz
> .”, which prevents local expansion.
> 
> Best regards,
> 
> -- 
> Jérémie
>



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