svn commit: r447625 - in head/sysutils: . chvt chvt/files

Alexey Dokuchaev danfe at FreeBSD.org
Wed Aug 9 16:07:04 UTC 2017


On Wed, Aug 09, 2017 at 10:22:09PM +0800, Ben Woods wrote:
> On 9 August 2017 at 20:32, Jan Beich <jbeich at freebsd.org> wrote:
> > FYI, on FreeBSD you can implement chvt(1) via shell script:
> >
> > $ cat ~/bin/chvt
> > #! /bin/sh
> > # The file is under Public Domain if not obvious
> > vidcontrol </dev/ttyv0 -s "${1?usage: chvt N}"

I was also somewhat surprised to see it added.

> I wasn't aware - thanks for the heads up.
> 
> Given its already committed, it probably doesn't hurt to keep this port
> with the C programming language option as an alternative to vidcontrol.

I thought that generally we try not to duplicate functionality that is
available in the base with the ports, unless the the port's implementation
is sufficiently different (e.g. GNU tools) or serves as another ports'
dependency which cannot be easily patched to use the base counterpart.

Every port takes time to fetch/build/package, and it does hurt in a way:
it increases maintenance burden (even if it's relatively minor in this
particular case).

./danfe


More information about the svn-ports-all mailing list