** Summary changed:

- find -regex ignores case
+ find -regex sometimes ignores case

** Description changed:

  Binary package hint: findutils
  
  find /usr/bin -regex '[/A-Z]+' prints everything in /usr/bin instead of
- just files with upper case characters.  In other words it functions
- exactly like -iregex.
+ just files with all upper case characters (none); in other words, it
+ functions exactly like -iregex.
+ 
+ find /usr/bin -regex '[/ABCDEFGHIJKLMNOPQRSTUVWXYZ]+' works as expected.
+ 
+ A better workaround is to use a different -regextype with posix
+ character classes, e.g.  find /usr/bin -regextype posix-egrep -regex
+ '[/[:UPPER:]]+'

-- 
find -regex sometimes ignores case
https://launchpad.net/bugs/58883

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to