Skip to content

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

@josemunozc

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

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