[Top][All Lists]

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

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

From: John Cowan
Subject: Re: [PATCH] ed with perl-compatible regular expressions
Date: Tue, 27 Jul 2021 12:07:08 -0400

On Tue, Jul 27, 2021 at 3:07 AM Paul Jackson <pj@usa.net> wrote:

The less ed(1) changes, the happier I am.

I sympathize entirely with that point of view.  However, if all non-Posix
features are gated behind command-line options, particularly GNU-style
options like --pcre, then I think everyone's interests are served:

   - If you want PCRE matching, use alias ed='ed --pcre';
   - If you don't, don't use an alias;
   - To bypass the alias temporarily for performance or whatever reasons,
   type \ed to the shell.

It's unlikely you'd type such an extension by mistake, unlike (say) ed -P.

I already use alias ed=ed -p '* ' because I like prompts, but if I'm
running an ed script, I use \ed <foo.ed.

reply via email to

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