zsh:options: Enable CSH_NULL_GLOB
Error only if all patterns of a command have no matches.
This commit is contained in:
@@ -81,6 +81,11 @@ if [[ $OSTYPE != linux-android ]]; then
|
||||
# the presence of any character which is special to filename generation will
|
||||
# cause case-insensitive matching. For example, cvs(/) can match the
|
||||
# directory CVS owing to the presence of the globbing flag (unless the
|
||||
# option BARE_GLOB_QUAL is unset).
|
||||
setopt NO_CASE_GLOB
|
||||
fi
|
||||
|
||||
# If a pattern for filename generation has no matches, delete the pattern
|
||||
# from the argument list; do not report an error unless all the patterns in
|
||||
# a command have no matches. Overrides NOMATCH.
|
||||
setopt CSH_NULL_GLOB
|
||||
|
||||
Reference in New Issue
Block a user