--- ../2003-05-14-00/moz	Wed May 14 04:02:35 2003
+++ moz	Tue Jun 17 20:42:03 2003
@@ -1,6 +1,6 @@
 #!/bin/sh
 appname=`basename "$0"`
-ver="0.2.2RC1.2003051400"
+ver="0.2.2RC1.2003053008"
 copy="2002, 2003"
 mail="PointedEars@gmx.de"
 mail_feedback="bug-moz@PointedEars.de"
@@ -137,24 +137,44 @@
 L "The command to run Mozilla.  The default is \`mozilla'," \
   "Befehl, der benutzt werden soll, um Mozilla zu starten."
 L "\
-                     which requires the \`mozilla' executable in the \`PATH'
-                     environment if it is not in the current directory and
-                     if you have not defined one using the \`MOZILLA_CMD'
-                     environment.  No check is performed, neither on the
-                     argument nor on the environment, but for \
-\`${extd}moz${norm}' working
-                     properly with a running Mozilla, the command must accept
-                     the \`-remote' option." \
+                     which applies at least for Mozilla, Netscape 6.2.3 and
+                     above, and for Phoenix < 0.5.  Users of other programs
+                     need to specify the command in order to get \`moz'
+                     working with them. The following commands are known:
+                     
+                       Netscape < 6.2.3           netscape
+                       Phoenix 0.5                phoenix
+                       Mozilla Firebird 0.6       MozillaFirebird
+
+                     This requires COMMAND to be an executable file that
+                     accepts the \`-remote' option, located either in a
+                     directory specified in the \`PATH' environment or in
+                     the current directory.
+                     If the option is left out, the default value can be
+                     overwritten defining the \`MOZILLA_CMD' environment." \
+                     No check is performed, neither on the option's argument
+                     nor on the environment." \
   "\
-                     Standard ist \`mozilla', was es erforderlich macht, dass
-                     sich die ausführbare Datei \`mozilla' im Suchpfad (\`PATH')
-                     befindet, falls nicht mit der Umgebungsvariablen
-                     \`MOZILLA_CMD' etwas anderes definiert wurde.
-                     Weder das Argument noch die Umgebungsvariable
-                     werden einer Prüfung unterzogen, aber damit \
-\`${extd}moz${norm}'
-                     zusammen mit einem laufenden Mozilla funktioniert,
-                     muss der Befehl die Option \`-remote' akzeptieren." | $fmt
+                     Standard ist \`mozilla', was für Mozilla, Netscape ab
+                     Version 6.2.3 und Phoenix < 0.5 zutrifft. Benutzer
+                     anderer Programme müssen diese Option angeben, damit
+                     \`moz' bei ihnen funktioniert. Die folgenden Befehle
+                     sind bekannt:
+
+                       Netscape < 6.2.3           netscape
+                       Phoenix 0.5                phoenix
+                       Mozilla Firebird 0.6       MozillaFirebird
+
+                     Erforderlich ist wie COMMAND benannte ausführbare Datei,
+                     welche die Option \`-remote' unterstützt, die sich
+                     entweder in einem mit der \`PATH'-Umgebungsvariable
+                     definierten Verzeichnis oder im aktuellen Verzeichnis
+                     befindet.
+                     Wenn diese Option nicht angegeben wird, so kann der
+                     Standardwert durch Definition der Umgebungsvariablen
+                     \`MOZILLA_CMD' überschrieben werden.
+                     Weder das Optionsargument noch die Umgebungsvariable
+                     werden einer Prüfung unterzogen." | $fmt
 
   echo -n "  ${extd}-B${norm}, ${extd}--binary${norm}     "
 L "Specifies what binary is used by Mozilla." \
@@ -166,18 +186,29 @@
                      and for \`${extd}-l${norm}' display.  The default is \
 \`mozilla-bin' which
                      applies at least for Mozilla, Netscape 6.2.3 and above,
-                     and for Phoenix < 0.5.  Users of Netscape < 6.2.3 need to
-                     specify \`netscape-bin', users of Phoenix/ Firebird 0.5
-                     and above need to specify \`phoenix-bin' here.  If the
-                     option is left out, the default value can be overwritten
-                     defining the \`MOZILLA_BIN' environment." \
+                     and for Phoenix < 0.5.  Users of other programs need to
+                     specify the binary in order to get \`moz' working with
+                     them. The following binaries are known:
+                     
+                       Netscape < 6.2.3           netscape-bin
+                       Phoenix 0.5                phoenix-bin
+                       Mozilla Firebird 0.6       MozillaFirebird-bin
+                     
+                     If the option is left out, the default value can be
+                     overwritten defining the \`MOZILLA_BIN' environment." \
   "\
                      bereits läuft und für die Anzeige mit der Option \
 \`${extd}-l${norm}'.
                      Standard ist \`mozilla-bin', was für Mozilla, Netscape
                      ab Version 6.2.3 und Phoenix < 0.5 zutrifft. Benutzer
-                     von Netscape < 6.2.3 müssen hier \`netscape-bin', Benutzer
-                     von Phoenix/ Firebird ab 0.5 müssen \`phoenix-bin' angeben.
+                     anderer Programme müssen diese Option angeben, damit
+                     \`moz' bei ihnen funktioniert. Die folgenden Binärdateien
+                     sind bekannt:
+                     
+                       Netscape < 6.2.3           netscape-bin
+                       Phoenix 0.5                phoenix-bin
+                       Mozilla Firebird 0.6       MozillaFirebird-bin
+
                      Wird diese Option nicht angegeben, so kann der Standardwert
                      durch Definition der Umgebungsvariablen \`MOZILLA_BIN'
                      überschrieben werden." | $fmt
@@ -216,7 +247,7 @@
   "Beendet (zuerst) alle Mozilla-Prozesse." | $fold
 L "\
                      each of the processes a SIGTERM(15) signal to end them
-                     politely.  If (and only if) this does not work, send
+                     politely.  If, and only if, this does not work, send
                      them the kinda rude SIGKILL(9) signal ;-)" \
   "\
                      Versucht zunächst, jedem Prozess ein SIGTERM(15)-Signal
@@ -382,11 +413,7 @@
     fallback="-"
     args="-f" # full output
     ps $args >/dev/null 2>&1
-    if [ $? -eq 0 ]; then
-      fallback=$args
-    else
-      args=$fallback
-    fi
+    test $? -eq 0 && fallback=$args || args=$fallback
     args=$args"u $whoami" # current user's processes only
     ps $args >/dev/null 2>&1
     test $? -ne 0 && args=$fallback
@@ -781,8 +808,8 @@
 
     if [ -z "$chk" ]; then
       RunMsg new
-      test -n "$uri" && test $mailto -eq 1 && test $inbox -eq 0 \
-        && test $compose -eq 0 && echo -n " "`L "with URI" "mit dem URI"`" '$uri'"
+      test -n "$uri" -a $mailto -eq 1 -a $inbox -eq 0 \
+        -a $compose -eq 0 && echo -n " "`L "with URI" "mit dem URI"`" '$uri'"
       echo -n "$stat"
       #if [ $block -eq 1 ]; then
       #  "$mozilla" "$uri"
@@ -828,11 +855,7 @@
 Bitte überprüfen Sie ihre Mozilla-Installation." | $fmt >&2
         fi
       else
-        if [ $error -eq 0 ]; then
-          echo $rc_done
-        else
-          echo $rc_failed
-        fi
+        test $error -eq 0 && echo $rc_done || echo $rc_failed
       fi
     else
       # check what kind of URI was given
@@ -868,11 +891,7 @@
   _XPG=0
       if [ $mailto -eq 0 ] && [ $inbox -eq 0 ] && [ $compose -eq 0 ]; then
         echo -n `L "Accessing URI" "Lade URI"`" "
-        if [ -n "$uri" ]; then
-          echo -n "'$uri'"
-        else
-          echo -n "'about:blank'"
-        fi
+        test -n "$uri" && echo -n "'$uri'" || echo -n "'about:blank'"
         test $new_win -eq 1 && \
           echo -n " "`L "in a new browser window" "in einem neuen Browserfenster"`
         test $new_tab -eq 1 && \
@@ -891,7 +910,7 @@
       fi
       echo -n "$stat"
       "$mozilla" -remote "$cmd" &
-      if [ $? -eq 0 ]; then echo $rc_done; else echo $rc_failed; fi
+      test $? -eq 0 && echo $rc_done || echo $rc_failed
     fi
     test -n "$1" && shift
     new_win=1