Bash export command
export is a Bash builtin, echo is an executable in your $PATH. So export is interpreted by Bash as is, without spawning a new process. You need to get Bash to interpret your command, which you can pass as a string with the -c option: ALSO: Each invocation of bash -c starts with a fresh … Read more