Skip to content
Advertisement

Tag: subshell

local variables in linux

When we export a local variable declared within a current shell does it get passed to future sub shells,processes , child processes or future child processes? I was told it get passed to future sub shells. Is it correct? Answer This simple test will answer you by itself: Breaking it down: No export … … leads to VAR1 not being

Advertisement