2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -2,5 +2,11 @@
|
|||
{{omit from|TI-83 BASIC}} {{omit from|TI-89 BASIC}} <!-- Does not have an environment other than regular global variables. -->
|
||||
{{omit from|Unlambda|Does not provide access to environment variables.}}
|
||||
|
||||
;Task:
|
||||
Show how to get one of your process's [[wp:Environment variable|environment variables]].
|
||||
The available variables vary by system; some of the common ones available on Unix include PATH, HOME, USER.
|
||||
|
||||
The available variables vary by system; some of the common ones available on Unix include:
|
||||
:::* PATH
|
||||
:::* HOME
|
||||
:::* USER
|
||||
<br><br>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
ConsoleWrite("# Environment:" & @CRLF)
|
||||
|
||||
Local $sEnvVar = EnvGet("LANG")
|
||||
ConsoleWrite("LANG : " & $sEnvVar & @CRLF)
|
||||
|
||||
ShowEnv("SystemDrive")
|
||||
ShowEnv("USERNAME")
|
||||
|
||||
Func ShowEnv($N)
|
||||
ConsoleWrite( StringFormat("%-12s : %s\n", $N, EnvGet($N)) )
|
||||
EndFunc ;==>ShowEnv
|
||||
Loading…
Add table
Add a link
Reference in a new issue