local and global variables in bash. There are any references about local and global variables in bash in here. you can look below.