Package: findutils
Version: 4.6.0+git+20170828-2
Severity: normal

Dear Maintainer,

The repitition count doesn't work with 'find -regextype egrep'.

>From the grep man page:

Repetition
{n}    The preceding item is matched exactly n times.
{n,}   The preceding item is matched n or more times.
{,m}   The preceding item is matched at most m times.  This is a GNU extension.
{n,m}  The preceding item is matched at least n times, but not more than m 
times.

E.g. with egrep:

$ echo aaaaa | egrep '^a{5}$'
aaaaa

However this doesn't work with 'find -regextype egrep', e.g.:

$ touch /tmp/aaaaa; find /tmp -maxdepth 1 -regextype egrep -name 'a{5}'

The other repitition count forms (e.g. {n,}) also don't work.

Cheers,

Chris

-- System Information:
Debian Release: buster/sid
  APT prefers bionic-updates
  APT policy: (500, 'bionic-updates'), (500, 'bionic-security'), (500, 
'bionic'), (100, 'bionic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-46-generic (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages findutils depends on:
ii  libc6        2.27-3ubuntu1
ii  libselinux1  2.7-2build2

findutils recommends no packages.

Versions of packages findutils suggests:
ii  mlocate  0.26-2ubuntu3.1

-- no debconf information

Reply via email to