QuestionQ58

VerifiedShells y scripts

Which command causes the shell variable named VARIABLE to be visible to subshells?

Explanation

export VARIABLE marks the shell variable VARIABLE for export, causing child processes and subshells to inherit it through their environment. The operand to export is the variable name, not $VARIABLE, which would expand to the variable’s value.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!