find -regex sometimes ignores case

Bug #58883 reported by Garrison Hoffman
Affects Status Importance Assigned to Milestone
findutils (Ubuntu)

Bug Description

Binary package hint: findutils

find /usr/bin -regex '[/A-Z]+' prints everything in /usr/bin instead of 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:]]+'

description: updated
Revision history for this message
Garrison Hoffman (garrison-codefix) wrote :

This bug is on all my Dapper & Edgy installations but not Feisty.

Revision history for this message
Kjell Braden (afflux) wrote :

Thank you for taking your time to report this bug and helping to make Ubuntu better. I'll close this bug since it got fixed in a newer version of Ubuntu.
Feel free to submit any future bugs you may find.

Changed in findutils:
status: New → Fix Released
dafintrash (dafintrash)
Changed in findutils (Ubuntu):
status: Fix Released → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers