#!/bin/sh # ~jhs/bin/ispell_after_vi # Called by ~jhs/src/bsd/fixes/FreeBSD/src/gen/share/mk/berklix.mk # Calls /usr/local/bin/ispell yes() { # echo Calling ispell $* # Note the $* is not params passed to this file script, # but params passed to this procedure by caller. ispell -x $* # -x Don't create a backup file. } no() { echo Skipping ispell $* } echo -n "ispell $* ? " read edit # echo EDIT is $edit case ${edit} in [Nn][Oo]) no $* ;; [Nn]) no $* ;; [Yy][Ee][Ss]) yes $* ;; [Yy]) yes $* ;; *) echo Error, Bad Answer, should be Yes or No, Assuming No. no ;; esac