File: fspell

package info (click to toggle)
ispell-czech 20040229-5.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,588 kB
  • ctags: 5
  • sloc: perl: 703; makefile: 76; sh: 43
file content (14 lines) | stat: -rwxr-xr-x 336 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
TMPFILE=`mktemp -q ${TMPDIR:-/tmp}/fspell.XXXXXX`
if [ "$?" -eq "0" ]; then
    cat > $TMPFILE
# Unfortunatelly trapping errors doesn't work when called from vim 
    trap 'cat $TMPFILE; exit 0' 1 2 13 15
    ispell -d czech $TMPFILE < /dev/tty > /dev/tty
    cat $TMPFILE
    rm -f $TMPFILE
    exit 0
else
    cat
fi
exit 0