Hi y’all,

I’m using both GNU ed (ged) and OpenBSD ed (oed), trying to make my
scripts and customizations portable across at least these two.

One difference in behavior that’s useful in scripts is oed’s early exit
whenever an error (“?”) happens. It’s nice to have that, because it
might mean the data is malformed and can’t be acted upon with
e.g. s-ubstitution and the commands following them.

ged seems to just skip the erroring command and proceed with the
script. Which is a valid behavior too, but slightly more dangerous in
the context of scripting text modifications. The data might end up
mutilated due to an important processing step being skipped. Suboptimal.

Any ideas for how to address that?

Best of love,
-- 
Artyom Bologov
https://aartaka.me

Reply via email to