Re: spell & ispell on modern Linux systems



In article <eti158-2ah.ln1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Geoff Clare <geoff@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Kenny McCormack wrote:

Ben Bacarisse <ben.usenet@xxxxxxxxx> wrote:
...
2) I don't think that "classic Unix" spell does any sorting or uniqing
on its output, so I don't see why that's there anyway.

What is "classic Unix"? The earliest spell I remember does this (that's
V7 spell) as does the original unix spell (famously written by Johnson
in an afternoon in 1975 if Bentley's Programming Perls is anything to go
by). I'd be surprised if these were the only two to do so.

Hmmmm. It seems one or the other of us is living in some alternative
universe.

No version of 'spell' that I've ever used works that way. Unfortunately, I
don't have one available at the moment to test, but unless my memory is
really playing tricks on me, it has always worked simply and interactively.

Every version I've used has had sorted unique output, except GNU spell.
I distinctly remember being surprised when I first used GNU spell and
it didn't behave the same as I was used to. I was already using it
from a wrapper script, so I added "| sort -u " to the script.

Anyone else care to test this and get back to me?

I just checked Solaris 10, HP-UX 11, and UnixWare 2 and they all
do this:

$ printf 'zzzzzz\naaaaaa\naaaaaa\n' | spell
aaaaaa
zzzzzz

GNU spell does this:

$ printf 'zzzzzz\naaaaaa\naaaaaa\n' | spell
zzzzzz
aaaaaa
aaaaaa

I haven't ever used spell on a BSD system, so maybe that behaves
the same as the GNU version.

On FreeBSD, the behavior of 'spell' (a hard link to ispell) is as cited
for GNU spell. the spell(1)/ispell(1) manpage says:
"Ispell is fashioned after the spell program from ITS (called ispell on
Twenex systems.)
.....
The -u option to ispell provides backwards compatibility with the Unix
spell command. When ispell is invoked as spell the -u option is
implied."

ID strings extracted from the executable:

@(#) International Ispell Version 3.3.02 12 Jun 2005
@(#) Copyright (c), 1983, by Pace Willisson
@(#) International version Copyright (c) 1987, 1988, 1990-1995, 1999,
@(#) 2001, 2002, 2005 by Geoff Kuenning, Claremont, CA.
@(#) The official ispell Web site is at:
@(#) http://www.lasr.cs.ucla.edu/geoff/ispell.html

'Cygwin' has aspell *only*. No spell, nor ispell.

Microsoft 'Services for Unix' has a '/bin/spell' script, which invokes
ispell with the -l option, and pipes that through 'sort -u'.

BSDI's BSD/OS (A fairly pure UCB "BSD 4.4" implementation) has a homebrew
(internally identified as such) script for 'spell', that does
"ispell -l | sort -u"

I knew the senior BSDi people -- many of the sr. programmers were direct
from the UCBerkeley CSRG dept (the BSD developers), when it was disbanded.
I'm reasonably confident that the BSD/OS behavior accurately mimics the
'spell' implementatin from "Berkeley Unix". "Genuine Bell Labs Unix" may
behave differently, I dont' have access to a box with that on it, to test.

.



Relevant Pages

  • Re: emacs & spell checking broke
    ... >> Since aspell, evidently supersedes ispell, now emacs does not spell ... complaining about not finding ispell. ...
    (Debian-User)
  • Re: spell & ispell on modern Linux systems
    ... will make it behave like the old spell, but this option isn't recognized on ... any the boxes I tested. ... Does anyone know of any other way to get ispell to ...
    (comp.unix.shell)
  • Re: emacs & spell checking broke
    ... > A quick question concerning emacs & spell checking. ... > Since aspell, evidently supersedes ispell, now emacs does not spell ... complaining about not finding ispell. ...
    (Debian-User)
  • Re: Newsreaders
    ... At 16:13:28, 22.02.2004, Eric Schreiber wrote: ... The only thing so far that disappoints me is that spell ... > checking (using ISpell) checks everything, not just the new text I've ...
    (borland.public.delphi.non-technical)
  • Re: Interview in Byte with Chris Sontag/SCO and FUD relating toBSDsettlement agreement
    ... In message, "Greg 'groggy' Lehey" ... I always spell his name wrong. ... Peter Salus book "A Quarter Century of UNIX" mentioned that he got ... in trouble and that AT&T stopped the distribution (to the extent ...
    (freebsd-hackers)