2016 Update

This commit is contained in:
Tina Müller 2016-12-05 22:15:40 +01:00
parent 948b86eafa
commit dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions

View file

@ -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; &nbsp; some of the common ones available on Unix include:
:::* &nbsp; PATH
:::* &nbsp; HOME
:::* &nbsp; USER
<br><br>

View file

@ -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