Bug 6099 - 'spell' problems: stdin only, duplicate misspellings
Summary: 'spell' problems: stdin only, duplicate misspellings
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ispell
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact:
URL:
Whiteboard:
: 7734 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-10-19 21:16 UTC by Chris Siebenmann
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-11-19 22:23:39 UTC


Attachments (Terms of Use)

Description Chris Siebenmann 1999-10-19 21:16:50 UTC
A traditional spell command will spellcheck one or more
files given on the command line (or stdin if there are no
files given on the command line), and misspelled words will
only be given once.

 The 'spell' script included in the ispell RPM will only
spellcheck standard input and will repeat misspelled words
as many times as they occur in the input.

Reproduction:
$ echo This spel command is awful at catchng spel mistakes
>/tmp/spelltest
$ spell </dev/null /tmp/spelltest
[no output]
$ spell </tmp/spelltest
spel
catchng
spel

 The simple fix appears to be to replace spell with the
following shell script:
	#!/bin/sh
	cat "$@" | ispell -l | sort -u

(This bug report is applicable to RedHat 6.1 unless the
behavior of 'ispell -l' has changed, which the manpage
claims it has not.)

 There is also no manpage for the spell command.

Comment 1 Michael K. Johnson 1999-11-19 22:23:59 UTC
Makes sense; I've changed the spell script for ispell-3.1.20-23, which
will be in the next RawHide.  Thanks!

Comment 2 Michael K. Johnson 1999-12-10 21:12:59 UTC
*** Bug 7734 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.