Re: spell & ispell on modern Linux systems
- From: bonomi@xxxxxxxxxxxxxxxxxxxx (Robert Bonomi)
- Date: Wed, 23 Mar 2011 23:51:40 -0500
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.
.
- References:
- spell & ispell on modern Linux systems
- From: Kenny McCormack
- Re: spell & ispell on modern Linux systems
- From: Ben Bacarisse
- Re: spell & ispell on modern Linux systems
- From: Kenny McCormack
- Re: spell & ispell on modern Linux systems
- From: Geoff Clare
- spell & ispell on modern Linux systems
- Prev by Date: Re: portable local variables?
- Next by Date: Re: named pipe across machines
- Previous by thread: Re: spell & ispell on modern Linux systems
- Next by thread: command line convert mm to inches etc
- Index(es):
Relevant Pages
|