bug-ed
[Top][All Lists]
Advanced

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

Re: [PATCH] ed with perl-compatible regular expressions


From: Antonio Diaz Diaz
Subject: Re: [PATCH] ed with perl-compatible regular expressions
Date: Thu, 29 Jul 2021 17:48:14 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14

Shawn Wagner wrote:
I'm mostly trying to fix one annoyance I've found - simple to use
case-insensitive regular expressions. Having more powerful REs
available as an option and parity with the flavors of RE accepted by
its stepchild grep are just added bonuses. If you don't want to use
this one, what about the earlier hackjob of a patch I sent that just
checks to see if the RE starts with (?i) and calls regcomp() with the
appropriate flag if so? Case-insensitive BREs and EREs are better than
nothing. and it's a smaller and less invasive patch if that's your
concern..

The main problem with your two proposals is that they either add a large dependency or are not backwards compatible.

I think there are ways to implement case-insensitive REs without these two inconveniences. Maybe a toggle command 'I'. Adding an 'I' or 'i' flag to the commands already accepting suffixes seems complicated (or impossible for 'g').

Just now I'm busy, but I'll take a look at these two ideas as soon as I find the time. Ideas are welcome.

Best regards,
Antonio.





reply via email to

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