Unofficial Shell Scripting Stylesheet

Bash Unix Shell Scripting:
Chapter 35. Scripting With Style

Unofficial Shell Scripting Stylesheet

 

... reading the UNIX source code to the Bourne shell (/bin/sh). I was shocked at how much simple algorithms could be made cryptic, and therefore useless, by a poor choice of code style. I asked myself, "Could someone be proud of this code?"

--Landon Noll

Notes

In this context, "magic numbers" have an entirely different meaning than the used to designate file types.