Skip to Content
Pro Bash Programming: Scripting the GNU/Linux Shell
book

Pro Bash Programming: Scripting the GNU/Linux Shell

by Chris F.A. Johnson
October 2009
Beginner to intermediate
242 pages
5h 4m
English
Apress
Content preview from Pro Bash Programming: Scripting the GNU/Linux Shell

CHAPTER 10Writing Bug-Free Scripts and Debugging the Rest

The programmer who has never written a buggy program is a figment of someone's imagination. Bugs are the bane of a programmer's existence. They range from simple typing errors to bad coding to faulty logic. Some are easily fixed; others can take hours of hunting.

At one end of the spectrum are the syntax errors that prevent a script from completing or running at all. These may involve a missing character: a space, a bracket or brace, a quotation mark. It may be a mistyped command or variable name. It may be a missing keyword, such as then after elif.

At the other end of the spectrum are the errors in logic. It may be counting from 1 when you should have started at 0, or it may be using ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro Bash Programming : Scripting the GNU/Linux Shell, Second Edition

Pro Bash Programming : Scripting the GNU/Linux Shell, Second Edition

Chris F. A. Johnson, Jayant Varma
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar

Publisher Resources

ISBN: 9781430219972Purchase book