fd icon indicating copy to clipboard operation
fd copied to clipboard

Update manual: --exclude glob on summary line

Open HaleTom opened this issue 7 months ago • 2 comments

Checks

  • [x] I have read the troubleshooting section and still think this is a bug.

Describe the bug you encountered:

The intro to the manual says: (emphasis mine)

By default fd uses regular expressions for the pattern. However, this can be changed to use simple glob patterns with the '--glob' option.

OK, so pattern is a regex.

And then, regarding --exclude

-E, --exclude pattern

But no. It's actually a glob. This really tricked me until I read the full description slowly, and word for word. I missed it on the first reading.

Can we please change this to:

-E, --exclude glob

Describe what you expected to happen:

Manual says:

-E, --exclude glob

What version of fd are you using?

fd 9.0.0

Which operating system / distribution are you on?

[tom@nas ~]$ uname -srm
Linux 6.6.33-2-MANJARO-RPI4 aarch64
[tom@nas ~]$ lsb_release -a
LSB Version:    n/a
Distributor ID: Manjaro-ARM
Description:    Manjaro ARM Linux
Release:        24.03
Codename:       n/a

HaleTom avatar May 19 '25 03:05 HaleTom

Related: Negating patterns: add --exclude-regex? #198

HaleTom avatar May 19 '25 03:05 HaleTom

Well, it isn't exactly a glob either. It's a gitignore pattern.

tmccombs avatar May 20 '25 04:05 tmccombs