3 ms·
It partially depends on Zsh's NOMATCH and NULL_GLOB setopt: NOMATCH - print error when glob doesn't match; NO_NOMATCH - print literal GLOB character: setop
by mmh0000 2y ago
It partially depends on Zsh's NOMATCH and NULL_GLOB setopt:
NOMATCH - print error when glob doesn't match;
NO_NOMATCH - print literal GLOB character:
setopt NOMATCH
ls * => zsh: no matches found: *
setopt NO_NOMATCH
ls * => ls '*'
NULL_GLOB - when glob doesn't match, return blank; (Overrides NOMATCH):
setopt NULL_GLOB
ls * => ls ''
# Brings behavior inline with RHEL/Bash4 defaults:
setopt NO_NOMATCH