1.5 Suppressing Case Differences

GNU diff can treat capital letters as equivalent to their small counterparts, so that, for example, it considers ‘Funky Stuff’, ‘funky STUFF’, and ‘fUNKy stuFf’ to all be the same. To request this, use the -i or --ignore-case option.

When ignoring case diff downcases each character before comparing it. For example, ‘diff -i’ downcases Greek capital “Δ” to small “δ” before comparison. Although this works for many cases, it may have problems in some. For example: