nvi: <tab> can't be used in the context of substitute

From: Xin Li <delphij_at_delphij.net>
Date: Sun, 02 Mar 2014 03:04:26 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

It looks like the new nvi version don't accept <tab> in the context of
substitute.  A minimal use case would be to replace all leading 8
spaces with tabs, what one would do on older version of nvi would be:

: 1,$ s/^        /<tab>/g

Now, with nvi in FreeBSD 10.x+, entering <tab> won't yield the <tab>
character.  This seems to be a regression from older nvi version.

Is this a known issue, or did I missed something?

Thanks in advance!

Cheers,
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJTExA6AAoJEJW2GBstM+nsRzIQAIfSS4isLQF4ex8ZzXQyE/0I
6Wia9FRHsa5gYt8phJxvWWbPCFeyHuqRjAkUEk+btuReZUSgEen27848v350hmBZ
DXMaJknryGIU1/f9x/XIjLYpmBOf58tN+rPId6psgFiH7NmdTcfAVg320fdAKlKC
gaMQHA3yGBC4ZTmopdj/e71gqmmjQuPe7kjyOx4fpdUWNKU+llIb5bUB1YWKYzyu
/hBBp8bewWoHjlH4qa0hSK/k6ef8yA8WmFEFldHZMQeXizQTmNxDKURZ9gZGOlYQ
m3mmeatE8KN+XVwn46p+iB9FcJu1dpzPq2QrepiWRzZJkxqOJhmjvQ0ZbZG1A6rM
jjQCRvKRi3PjzRPrGkBhhSZcRYmpNsYV8Anf4mUg5GxbJNKYzHAhKJ+dySc+nvqm
5xccpeGXpw/ji/A5OefoEzQSAhujVaBW5x64J28E7VwY5zw38K20wm0hv+KfWofM
OWc/gAB/1OYh5i+BaEb/O7RBoFIK+19MkJU3LFklBpDB2d8AE7vhoCbE4j9uujwB
8yFGNcl4up2z0ln+YhBYfTo8oc4iq6V55vNJYOM5iARKlQKYlhpPpyFgL+ssR4nY
+hAPSJ8qV2dMNqwdwW7oGhlzAMR/+i/s/TMeHyLCJijEcTpZZB/V7k/I6muzHnYg
p9f4hmB2r2f6/TaUyFmH
=5n4i
-----END PGP SIGNATURE-----
Received on Sun Mar 02 2014 - 10:04:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:47 UTC