Live data from Hacker News

Portable OpenBSD vi for Unix systems

github.com

11–20 of 29 posts

Re: Portable OpenBSD vi for Unix systems

#12
post #11
post #6

Most OpenBSD users with Unicode needs will use nvi2 from ports.

Indeed, but it would be nice to have that support in the base install. Sadly I do not have the skill set to work towards it.

ed it's in base and it will support anything you throw at it under an XTerm with a Unicode locale in X.

Re: Portable OpenBSD vi for Unix systems

#14

There are many unofficial efforts to bring OpenBSD software to other systems. For example, there are at least two maintained ports of OpenBSD ksh, https://github.com/dimkr/loksh (Linux) and https://github.com/ibara/oksh (cross-platform). There are also at least two of doas, https://github.com/slicer69/doas and https://github.com/nholstein/OpenDoas . I wish they were catalogued somewhere, like an "awesome list". I wou…

> I wish they were catalogued somewhere, like an "awesome list".

Sure, they are listed here

https://github.com/ligurio/awesome-openbsd#portable-openbsd-...

Re: Portable OpenBSD vi for Unix systems

#15
post #14

There are many unofficial efforts to bring OpenBSD software to other systems. For example, there are at least two maintained ports of OpenBSD ksh, https://github.com/dimkr/loksh (Linux) and https://github.com/ibara/oksh (cross-platform). There are also at least two of doas, https://github.com/slicer69/doas and https://github.com/nholstein/OpenDoas . I wish they were catalogued somewhere, like an "awesome list". I wou…

> I wish they were catalogued somewhere, like an "awesome list". Sure, they are listed here https://github.com/ligurio/awesome-openbsd#portable-openbsd-...

Haha, this is exactly what I asked for. :-) I should have checked Awesome OpenBSD. Thanks for making this list.

Re: Portable OpenBSD vi for Unix systems

#16
post #2

I'll be able to try a bit later, but does it handle UTF-8 correctly? I remember having some versions of nvi split characters through the middle when doing e.g. folding back in the day. EDIT: Sorry, I'm a dum-dum, it's written in the README: > No support for Unicode / UTF-8 / wide character display > Multibyte support is planned, but is unfortunately non-trivial, […]

If you want a small, portable vi with Unicode, you can static build the version from Busybox. That's what I do.

Re: Portable OpenBSD vi for Unix systems

#17

There are many unofficial efforts to bring OpenBSD software to other systems. For example, there are at least two maintained ports of OpenBSD ksh, https://github.com/dimkr/loksh (Linux) and https://github.com/ibara/oksh (cross-platform). There are also at least two of doas, https://github.com/slicer69/doas and https://github.com/nholstein/OpenDoas . I wish they were catalogued somewhere, like an "awesome list". I wou…

FYI the doas ports you added are poorly maintained.

The nholstein repo clearly states: This repository temporarily unmaintained.

And the slicer69 project has had some insecure code added in the past: https://xn--1xa.duncano.de/slicer69-doas.html

The awesome-openbsd repo only links to the Duncaen OpenDoas repo: https://github.com/Duncaen/OpenDoas

Re: Portable OpenBSD vi for Unix systems

#18

There are many unofficial efforts to bring OpenBSD software to other systems. For example, there are at least two maintained ports of OpenBSD ksh, https://github.com/dimkr/loksh (Linux) and https://github.com/ibara/oksh (cross-platform). There are also at least two of doas, https://github.com/slicer69/doas and https://github.com/nholstein/OpenDoas . I wish they were catalogued somewhere, like an "awesome list". I wou…

FYI the doas ports you added are poorly maintained. The nholstein repo clearly states: This repository temporarily unmaintained. And the slicer69 project has had some insecure code added in the past: https://xn--1xa.duncano.de/slicer69-doas.html The awesome-openbsd repo only links to the Duncaen OpenDoas repo: https://github.com/Duncaen/OpenDoas

Sorry, I meant to link to https://github.com/Duncaen/OpenDoas instead of https://github.com/nholstein/OpenDoas. Thank you for correcting my mistake.

Re: Portable OpenBSD vi for Unix systems

#19
post #9
post #5

Earlier quoted context omitted.

What is so difficult in porting ? OpenBSD is a (duck) UNIX so it shouldn't be any issue.

It's really just the effort and time to understand the data structures and API considerations between the two systems. Saying something is a UNIX doesn't absolve you of the duty of knowing how the specific UNIX was implemented. Also, Linux has no UNIX heritage so relying on UNIX knowledge isn't as helpful as you might think and most of the commonalities are through things like POSIX standards which don't necessarily…

> It's a fairly niche project and the people that work on it really don't care about Linux at all.

Maybe true for the core OS, but they provide portable OpenSSH, OpenSMTPD, OpenNTPD, LibreSSL and a few others.

Re: Portable OpenBSD vi for Unix systems

#20
post #12
post #11

Earlier quoted context omitted.

Indeed, but it would be nice to have that support in the base install. Sadly I do not have the skill set to work towards it.

ed it's in base and it will support anything you throw at it under an XTerm with a Unicode locale in X.

There is a reason it is the standard editor, after all.
Post reply on HN