Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!harpo!seismo!hao!hplabs!sri-unix!matt@ucla-locus
From: matt%ucla-locus@sri-unix.UUCP
Newsgroups: net.unix
Subject: Re:  Shell programming style -- a plea for better shell scripts
Message-ID: <16947@sri-arpa.UUCP>
Date: Sat, 25-Feb-84 18:40:17 EST
Article-I.D.: sri-arpa.16947
Posted: Sat Feb 25 18:40:17 1984
Date-Received: Fri, 2-Mar-84 15:01:23 EST
Lines: 19

From:            Matthew J. Weinstein 

Two notes:

	I believe that Bourne shell IS the default on a BSD system.  
	The #! may not be recognized on non-Berkeley systems.
	Better that it be added locally if it's wanted...

	If PATH varies among Unices, it might be better to define all 
	of the programs you are going to use at the top of the shell 
	script, as one does in make scripts; e.g.:
		SORT=/bin/sort		set SORT = /bin/sort
		SED=/bin/sed		set SED  = /bin/sed
	The owner of the target system can easily tell what has to be
	changed; this also makes the script writer think about it too...

Maybe there should be an ``Elements of Shell Programming Style'' ...

					- Matt