Skip to content

Explain what export does in Arithmetic and Arrays lesson. #1

Open

Description

@josemunozc

Explain that export makes a variable available to subprocesses. Add a simple example:
I think this might work
$ cat script.sh
echo "variable value=$var1"
$ var1="hello"
$ shell script.sh
variable value=
export var1="hello"
$ shell script.sh
variable value=hello

Activity

  1. self-assigned this
    on Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions