nvi and '|' in exrc

classic Classic list List threaded Threaded
1 message Options
adr
Reply | Threaded
Open this post in threaded view
|

nvi and '|' in exrc

adr
Hello,

In case the developer working with nvi is interested:

Making a map I found that a '|' in exrc will produce an error.

Looking at common/seq.c I saw that a CH_LITERAL (0x16) is inserted
before when constructing the sequence.

I typed a literal 0x16 before the '|' and the map worked.

I think that changing the read() at ex_sourcefd in ex/ex_source.c
for a custom function that insert the CH_LITERAL is a good idea.

Or at least add a description of this behavior in the man page.

Or maybe I'm just missing something.

Anyway, now you know.

adr.