Page MenuHomeFreeBSD

Import spell(1) and deroff(1) from OpenBSD
AbandonedPublic

Authored by gbe on Feb 25 2023, 11:55 AM.
Tags
None
Referenced Files
F133123022: D38768.diff
Thu, Oct 23, 4:11 AM
Unknown Object (File)
Thu, Oct 16, 4:06 PM
Unknown Object (File)
Fri, Oct 10, 2:49 AM
Unknown Object (File)
Tue, Oct 7, 12:26 AM
Unknown Object (File)
Sep 9 2025, 7:08 PM
Unknown Object (File)
Aug 13 2025, 4:28 AM
Unknown Object (File)
Aug 12 2025, 5:34 PM
Unknown Object (File)
Aug 9 2025, 5:07 AM

Details

Reviewers
imp
Group Reviewers
manpages
Summary

spell(1) collects words from the named documents and looks
them up in a spelling list. Words that neither occur among
nor are derivable (by applying certain inflections, prefixes
or suffixes) from words in the spelling list are printed
on the standard output.

deroff(1) reads each file in sequence and removes all roff
command lines, backslash constructions, macro definitions,
eqn constructs (between “.EQ” and “.EN” lines or between
delimiters), pic pictures, and table descriptions and writes
the remainder to the standard output.

spell(1) and deroff(1) did not appear in freely redistributable
BSD releases for licensing reasons. After Caldera relicensed early
UNIX releases the 4.4BSD version was added to NetBSD and OpenBSD.

MFC after: 2 weeks

Test Plan

buildworld

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningusr.bin/spell/spellprog.c:143SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:8SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:37SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:72SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:111SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:113SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:305SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:336SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:591SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:740SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:788SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:789SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:835SPELL1Possible Spelling Mistake
Warningusr.bin/spell/stop:837SPELL1Possible Spelling Mistake
Unit
No Test Coverage
Build Status
Buildable 49999
Build 46891: arc lint + arc unit

Event Timeline

gbe requested review of this revision.Feb 25 2023, 11:55 AM
gbe created this revision.

is there really use for it in base instead of as a port? especially the deroff thing is kind of... niche

In D38768#882357, @mjg wrote:

is there really use for it in base instead of as a port? especially the deroff thing is kind of... niche

Per spell(1), spell uses deroff, so you can't have just spell in base.

usr.bin/deroff/deroff.1
64

Is the date left deliberately unchanged (including the $...$ tag) here and not in spell.1 below?

In D38768#882357, @mjg wrote:

is there really use for it in base instead of as a port? especially the deroff thing is kind of... niche

The spell(8) command is useful for spellchecking man pages, since the mdoc macros are very similar. I always find the usage of aspell on man page a pure pain to use. This is where deroff comes in.

I could make this a port and put the sources on GitHub, if an import into base should be avoided, but since NetBSD and OpenBSD ship it per default, why we shouldn't.