Admin/pmail
changeset 13321 70a5d5fc081a
parent 13320 2c6ee189ae63
child 14034 55ba81e3502b
--- a/Admin/pmail	Tue Jul 09 11:46:36 2002 +0200
+++ b/Admin/pmail	Tue Jul 09 11:55:46 2002 +0200
@@ -31,19 +31,19 @@
 [ "$1" = "-?" ] && usage
 [ "$#" != "3" ] && usage
 
-SUBJECT=$1
-TO=$2
-BODY=$3
+SUBJECT="$1"
+TO="$2"
+BODY="$3"
 
-[ -r $BODY ] || fail "could not read $BODY"
+[ -r "$BODY" ] || fail "could not read $BODY"
 
 case `uname` in
-    Linux*)
-    mail -s "$SUBJECT" $TO <$BODY
+    linux*|Linux*)
+    mail -s "$SUBJECT" "$TO" < "$BODY"
     ;;
 
     SunOS*)
-    mail -t $TO <<EOF
+    mail -t "$TO" <<EOF
 Subject: $SUBJECT
 
 `cat $BODY`