I don't know what is causing this error. I just cut and pasted your script
into vi and it saved without trouble.
What command are you using to save the script?
Have you tried to remove some offending trailing charcters (invisible) from
the end of your file?
For example, go to the end of your pf line, and type d$
Then, if there are any lines below the pf line, go the the first line below
the pf lind and type 1000dd
Don't be afraid of messing things up. You can reverse any edits with u
Joel

On Sun, May 12, 2002 at 08:05:53PM +0700, Brian Durant wrote:
> 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:
> -
> - H!/bin/sh
> - newsbody -hqs -n $2 -p ispell -- -x pf
> 
> 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:
> 
> H!/bin/sh
> newsbody -hqs -n $2 -p ispell -- -d danish -C -x pf
> 
> 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