Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Understanding Functions in Bash

Jul 06, 2011, 02:00 (0 Talkback[s])

[ Thanks to Andrew Weber for this link. ]

Because the function is executed in the context of the same shell, it does not create a new child process, this makes functions faster as they access the information in RAM. This also will save on resources as you use functions.

"Functions are a script within a script which can be defined by the user and stored in memory, allowing you to reuse the function repeatedly. This also provides a modular aspect that allows you to debug one function at a time be disabling functions."

Complete Story

Related Stories: