Supress ZSH "no matches found" error #120

merged 1 commit into from Jul 9, 2012


None yet
2 participants

tomassedovic commented Jul 7, 2012

This is a fix for the error messages displayed under ZSH.

I tested this with Bash and ZSH and both work.

Supress ZSH "no matches found" error
Fixes issue #39

ZSH's default globbing behaviour differs from Bash. If there is no
match, ZSH itself will print the error message.

This means that piping a commantd's STDERR to /dev/null will not
hide it.

By unsetting the NOMATCH option we get a behaviour similar to Bash.

Signed-off-by: Tomas Sedovic <>

creationix added a commit that referenced this pull request Jul 9, 2012

@creationix creationix merged commit 96a4488 into creationix:master Jul 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment