Skip to main content

One doc tagged with "bash"

View all tags

Shell scripting and environment variables — export and process inheritance

This chapter explains the difference between shell variables and environment variables from the angle of whether they're inherited by child processes. It covers what export does, correct use of the env command, the difference between tilde expansion and absolute paths, and how to choose a way to run a script.