File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,28 @@ variables.
7373all keys to uppercase for display, iteration, and copying. Portable code should not rely on the
7474ability to distinguish variables by case, and should beware that setting an ostensibly lowercase
7575variable may result in an uppercase `ENV` key.)
76+
77+ If you want to create your own `ENV` variable, you can do so by specifying its name in quotation marks as
78+ is shown below:
79+
80+ # Examples
81+ ```jldoctest ENV
82+ julia> ENV["JULIA_EDITOR"] = "vim"
83+ "vim"
84+
85+ julia> ENV["JULIA_EDITOR"]
86+ "vim"
87+ ```
88+
89+ To see all of your active `ENV` variables in your current environment, you can simply do the following:
90+ ```julia
91+ julia> ENV
92+ Base.EnvDict with "N" entries:
93+ "SECURITYSESSIONID" => "123"
94+ "USER" => "username"
95+ "MallocNanoZone" => "0"
96+ ⋮ => ⋮
97+ ```
7698"""
7799const ENV = EnvDict ()
78100
You can’t perform that action at this time.
0 commit comments