A minimalistic framework for writing bash programs.
Place undies
script in your $PATH
.
Now all you need to do to include . undies
at the end of your bash script. Undies will automatically recognize functions names as function__
and variables named as __var
.
The following is a simple undies script, called hello.sh
#! /usr/env/bin bash
__who="World"
world__ () {
echo Hello ${__who}!
}
. undies
$ ./hello.sh world
Hello World!
$ ./hello.sh --who "Universe" world
Hello Universe!