mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
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 existing functions. This setting `shopt -s nocasematch` seems the one that should be enabled locally when it is specifically needed rather than being enabled globally.
2.6 KiB
2.6 KiB