Tuesday, July 02, 2019

ed(1) man page doesn't mention use of single / and ?

Hi!

I am not good at explaining something shortly and clearly to fit into
proper documentation, so I'll just describe my experience here.

Terminating regular expressions with / or ? is necessary only if they
are followed by commands, otherwise the following are legal in both
OpenBSD ed, Plan 9 ed and GNU ed:
/something
/
?
g/ing

I hope I made life of many ed users easier :)

No comments:

Post a Comment