bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #42501] Add -E option for FreeBSD/Mac OSX compatibility


From: Stephane Chazelas
Subject: [bug #42501] Add -E option for FreeBSD/Mac OSX compatibility
Date: Wed, 3 Nov 2021 13:25:17 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0

Follow-up Comment #4, bug #42501 (project findutils):

I would also love to see -E added to GNU find.

[comment #3 comment #3:]
> I'm happy to implement this option as long as we can nail down which regex
dialect -E should select.   Is there any chance you could provide more detail
on your answer to question 1, perhaps by performing some experiments?

That should be equivalent to -regextype posix-extended

The idea is that it makes it consistent with grep -E, sed -E, etc.

Note that BSD find -regex, without -E, expects POSIX basic regexps like grep
or sed, while GNU find expects some ancient form of emacs regexps. Those can't
be reconciliated at the moment.

Some implementations of sed and grep (namely the ast-open one) support -G /
--basic-regexp to explicitly request basic regexps.

So maybe we could convince the maintainers of GNU and BSD find to support that
-G as well to enable basic regex.

-P, for perl-like regexps (for instance via pcre) would also be welcome as
they've become the new de-facto standard for regexps these days.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?42501>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]