`sh' script coding standard

Fergus Henderson fjh at cs.mu.oz.au
Fri Feb 14 15:54:49 AEDT 1997


Hi everyone,

Just a brief note: the indentation style for `sh' scripts
is "by analogy" with the style for C.

Some examples:

	#-------------------------------------------------------------------#

	if foo; then
		...
	else
		...
	fi

	#-------------------------------------------------------------------#

	if	this_very_long_command with lots of arguments &&
		that_very_long_command with lots of arguments &&
		some_other_command
	then
		...
	fi

	#-------------------------------------------------------------------#

	for var in ...; do
		...
	done

	#-------------------------------------------------------------------#
-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list