Peter Seebach — Beginning Portable Shell Scripting — Apress, 2008, 352 pp. ISBN 978-1-4302-1043-6
This book, like Bash Cookbook: Solutions and Examples for Bash Users isn’t overly technical. It focuses on one particular aspect of shell scripting, portability. While no one really expects a bash script to be excuted using a different shell, such as zsh, for example, Seebach shows us that there are ways to ensure that the scripts behave reasonnably well when executed in different environments and by different shells. Seebach presents various shell constructs and discusses their portability, giving numerous examples.
The only major shortcoming of this book is that it does not discuss internationalization, another problem shell programmers may encounter (shell commands may behave a bit differently depending if you’re using a basic US/english configuration or if you happen to run on a finnish-language install, and that can be a source of problems).
Another book in the BASH scripting series: Bash Cookbook: Solutions
and Examples for Bash Users, Classic Shell Scripting, and Linux Shell Scripting with Bash