VAR=""This is the output when when executed:
A() {
VAR="This is my value"
echo "VAR in $FUNCNAME: $VAR"
}
BA() {
A | tee /tmp/kk
echo "VAR in $FUNCNAME: $VAR"
}
$ BA
VAR in A: This is my value
VAR in BA:
VAR=""
A() {
VAR="This is my value"
echo "VAR in $FUNCNAME: $VAR"
}
BA() {
A
echo "VAR in $FUNCNAME: $VAR"
}
$ BA
VAR in A: This is my value
VAR in BA: This is my value
Juan
Ignacio Esteban
Integration
Architect & Security Officer | Integration Centre of
Expertise
Walgreens
Boots Alliance - Enterprise IT Shared Services - Retail
Pharmacy International & Pharmaceutical Wholesale
Pol.
Ind. San Miguel
Sector 4 | Villanueva de Gállego | Zaragoza (Spain) | 50830
Member
of Walgreens
Boots Alliance