
Bash Cookbook
By :

This chapter is about creating components that mimic application functionality such as menus or a daemon. For that to happen, let's step back for a second and determine: what defines an application or daemon? Is it menus? Is it the ability to run forever? Or the ability to run headless in the background? All of this defines behaviors that an application may exhibit, but nothing prevents a script from also having these behaviors as well!
For example, if a bash script did not have an extension (for example, .sh
) and was not ran explicitly with the Bash interpreter, how would you know on the first inspection that it was a script and not a binary? While there are a number of ways such as opening, or using the file
command, on the surface, a script can appear the same as a program!