Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The setting `shopt -s nocasematch` affects every pattern matching in Bash including the case statement, [[ str == pat ]] matching, ${var/pat/rep}, and ${var#pat}. Since the affected range is too large, this potentially breaks the exiting functions. I think this settings `shopt -s nocasematch` should be enabled locally when it is specifically needed rather than enabling it globally.
- Loading branch information