Skip to content

environment variables scope

ksherlock edited this page Nov 1, 2022 · 3 revisions

Execute script

uses the same environment as the parent shell argument variables ({#}, {0} etc) are not set

Script

local environment imported but changes are not reflected back in the parent. Argument variables are set.

compiled shell command

only exported variables included, no facility to export.

Clone this wiki locally