QuestionQ58Verified/Shells y scriptsCopy linkReport a problemAsk AstroTutorSave questionWhich command causes the shell variable named VARIABLE to be visible to subshells?Aexport $VARIABLEBenv VARIABLECset $VARIABLEDset VARIABLEEexport VARIABLEShow AnswerAnswerExplanationexport 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 moreBourne Shell Builtins — Bash Reference ManualShow comments4Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion