zsh:options: Enable CSH_NULL_GLOB

Error only if all patterns of a command have no matches.
This commit is contained in:
2022-09-22 03:02:24 +02:00
parent 4ccf7961b2
commit d7c9bda8a7

View File

@@ -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