Prevent zsh from trying to expand everything

Posted by Attila O. on Super User See other posts from Super User or by Attila O.
Published on 2013-11-05T01:19:19Z Indexed on 2013/11/05 4:01 UTC
Read the original article Hit count: 478

Filed under:
|

Recently switched from bash, I noticed that zsh will try to expand every command or argument that looks like it has wildcards in it. So the following lines won't work any more:

git diff master{,^^}
zsh: no matches found: master^^

scp remote:~/*.txt .
zsh: no matches found: remote:~/*.txt

The only way to make the above commands work is to quote the arguments, which is quite annoying.

Q: How do I configure zsh to still try to expand wildcards, but if there are no matches, just pass on the argument as-is?

EDIT: Possibly related: scp with zsh : no matches found

© Super User or respective owner

Related posts about command-line

Related posts about zsh