set PATH so can find tac when run remotely
authorJay Lepreau <lepreau@ucbvax.Berkeley.EDU>
Thu, 17 Oct 1985 17:58:18 +0000 (09:58 -0800)
committerJay Lepreau <lepreau@ucbvax.Berkeley.EDU>
Thu, 17 Oct 1985 17:58:18 +0000 (09:58 -0800)
SCCS-vsn: local/tac/tmail.sh 1.2

usr/src/local/tac/tmail.sh

index ef2b55a..a866ca3 100644 (file)
@@ -1,8 +1,9 @@
 #! /bin/sh
 #! /bin/sh
-#      @(#)tmail.sh    1.1 %G%
+#      @(#)tmail.sh    1.2 %G%
 # Print out mail backwards.
 # Author: Jay Lepreau, Univ of Utah
 #
 # Print out mail backwards.
 # Author: Jay Lepreau, Univ of Utah
 #
+PATH=/usr/new:/bin:/usr/bin:/usr/ucb
 case $# in
        0) file=/usr/spool/mail/$USER
           ;;
 case $# in
        0) file=/usr/spool/mail/$USER
           ;;
@@ -13,7 +14,7 @@ case $# in
                file=$1
           fi
           ;;
                file=$1
           fi
           ;;
-       *) echo "Usage: $0 [ username ] [ mboxfile ]"
+       *) echo "Usage: `basename $0` [ username ] [ mboxfile ]"
           exit 1
           ;;
 esac   
           exit 1
           ;;
 esac