Bash function library