Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!harpo!seismo!hao!hplabs!sri-unix!gwyn@brl-vld
From: gwyn%brl-vld@sri-unix.UUCP
Newsgroups: net.unix
Subject: Re:  Shell programming style -- a plea for better shell scripts
Message-ID: <16945@sri-arpa.UUCP>
Date: Sat, 25-Feb-84 17:34:26 EST
Article-I.D.: sri-arpa.16945
Posted: Sat Feb 25 17:34:26 1984
Date-Received: Fri, 2-Mar-84 14:59:56 EST
Lines: 20

From:      Doug Gwyn (VLD/VMB) 

Here are two important considerations for people writing Bourne shell
scripts that may have to be run by other people who perhaps are on a
Berkeley UNIX using the Cshell as a command interpreter:

(1)	The first line of every Bourne shell script should be:

	#!/bin/sh

(2)	Before invoking ANY system commands, set the expected command
	search path.  This is usually:

	PATH=/bin:/usr/bin

	but on BRL UNIXes, UNIX System V compatible shell scripts must
	use the following since /bin and /usr/bin may have incompatible
	commands such as "echo" and "pr":

	PATH=/usr/5bin:/bin:/usr/bin