You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
find: -regextype settings are lost across parentheses #933
A -regextype posix-basic setting before parentheses is ignored by -regex inside them. Adding parentheses changes which files match.
From the repository root after building:
uu_find="$PWD/target/debug/find"
tmp=$(mktemp -d)
(
cd"$tmp"||exit
mkdir d
touch d/f1
LC_ALL=C /usr/bin/find d -regextype posix-basic \( -regex '.*/f[0-9]+'\) -print
LC_ALL=C "$uu_find" d -regextype posix-basic \( -regex '.*/f[0-9]+'\) -print
)
GNU prints nothing; uutils prints d/f1. Both exit 0 with empty stderr. Removing the parentheses makes both implementations print nothing.
This also affects -iregex. A -regextype setting inside parentheses is lost for regex tests after them.
Tested with uutils findutils 0.11.0, main 82cfc21f0d45fc654588f0f4243e9c6e5f57fc97, on Debian forky/sid, Linux x86_64, against /usr/bin/find from GNU findutils 4.11.0.
Activity
zhangpan2001 commentedon Oct 29, 2026
I have prepared a PR for this issue.
find: preserve -regextype across parentheses
find: preserve -regextype across parentheses