Hi again,

I am trying to write two, two line shell scripts in connection with Mutt,
iSpell and "newsbody", which is part of  "spellutils-0.7". I would like to
place them in /usr/local/bin.

- Script 1. For spell-checking English mails:
-
- #!/bin/sh
- newsbody -hqs -n $2 -p ispell -- -x %f

When trying trying to save the script from vi, I get the following error
message:

'f' trailing characters.

Script 2. For spell-checking Danish mails:

#!/bin/sh
newsbody -hqs -n $2 -p ispell -- -d danish -C -x %f

Same problem.

I also tried with Advanced Editor, but it wouldn't save into /usr/local/bin.
I am sure this is very simple for anyone that has written a script before,
but I haven't. Unfortunately, I haven't been able to find any newbie script
tutorials either. I'm using SuSE 7.3 and Mutt 1.3.22.1i.

I have already included the following in my .muttrc file, so if I could just 
figure this script thing out, it would be a great help:

macro compose i ":set ispell=newsbody-ispell\n" "ispell-english"
macro compose I ":set ispell=newsbody-ispell-dansk\n" "ispell-dansk"


Cheers,

Brian

Reply via email to