Scope of variables in shell scripting | local variable vs global variable | FUNCNAME array variable

preview_player
Показать описание
Hello guys , This video is about understanding the concept of scope of variables in shell scripting which include global scope and local scope and to understand the FUNCNAME array variable in shell scripting . The scope of a variable refers to the visibility of variable in shell script after it is defined . A variable can have two scope that is local scope and global scope and the respective scope is given with global variables and local variables in shell scripting . I started with explaining the meaning of scope of variables in shell scripting , followed local variables and global variables in shell script . I explained global variables and local variables with multiple examples. After that , I discussed about the FUNCNAME array variable that can be used to print the names of functions which are called in a sequence i.e present in call stack . Multiple examples for FUNCNAME is provided the clear the concept .
Topics covered in this video are :
- scope of variables in shell scripting
- local variables in shell scripting
- global variablss in shell scripting
- variables inside function
- difference between local variables and global variables in shell scripting
- FUNCNAME array variable in shell scripting
- use of FUNCNAME variable
- print name of the functions present in call stack
- print name of executing function name in shell script
#scope #global #local #variable #FUNCNAME

_____________________________________________________
Support My Work On ...

_____________________________________________________
Connect With Me On ...

Рекомендации по теме