I wrote the following script:
我写了下面的脚本:
bar() {
echo $(foo) >&2
echo "bar" >&2
echo $VARIABLE >&2
}
foo() {
echo "foo" >&2
VARIABLE="test"
echo $VARIABLE >&2
}
bar
barI wrote the following script:
我写了下面的脚本:
bar() {
echo $(foo) >&2
echo "bar" >&2
echo $VARIABLE >&2
}
foo() {
echo "foo" >&2
VARIABLE="test"
echo $VARIABLE >&2
}
bar
bar