Index: openacs-4/bin/webspell
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/bin/webspell,v
diff -u -r1.1 -r1.2
--- openacs-4/bin/webspell	30 Sep 2003 19:27:48 -0000	1.1
+++ openacs-4/bin/webspell	23 Oct 2003 10:52:06 -0000	1.2
@@ -1,13 +1,20 @@
 #!/bin/sh
-
-# Wrapper for aspell/ispell that sets the HOME environment variable.
-# Can't seem to do this from AOLserver Tcl.
-# Takes three arguments: file to spellcheck, dictionary file, language.
 #
+# webspell -  Wrapper for Aspell/Ispell that sets the HOME environment variable
+# to [ns_info home] ... can't seem to do this from AOLserver Tcl.
+#
+# Takes five arguments:
+#
+# $1) AOLserver home.
+# $2) Spellcheck binary (Aspell or Ispell).
+# $3) Language, in lang or locale format. (Aspell only - Ispell gets "".)
+# $4) Local dictionary file (additional words you don't want to get caught by.)
+# $5) tmpfile
+#
 # Root must be able to execute this file if AOLserver runs as root
 # (which it does if it runs on a privileged port, e.g., port 80)
 
-#HOME=/usr/local/aolserver
-HOME=$4
+HOME=$1
 export HOME
-exec $3 $5 -a -p $2 < $1
+
+exec $2 $3 -a -p $4 < $5