mc/misc/edit.spell.rc

12 lines
247 B
Bash

#! /bin/sh
# *** External Spell Checker for GNU Midnight Commander.
# arguments:
# $1 - Name of the file being edited
# $2 - Name of the file to be processed
if aspell </dev/null >/dev/null 2>&1; then
aspell -c "$2"
else
ispell "$2"
fi