ohmyzsh: SCP don't accept wildcard
When i try to do a SCP from other server to my system with wildcards i have an error:
jlruizmlg@MacBook-Pro-de-Jose ~ scp jlruizmlg@192.168.78.140:/tmp/wazuh-ossec-2.0.12.tar.* Desktop
zsh: no matches found: jlruizmlg@192.168.78.140:/tmp/wazuh-ossec-2.0.12.tar.*
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (9 by maintainers)
You can alias scp toDon’t alias scp, you’ll get problems like the user below.noglob scpso that you don’t have to do it yourself all the time.Put the path including the wildcard between quotes so that zsh doesn’t try to expand it to a local file. Another solution is putting
noglobbefore the scp command.