Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,7 +0,0 @@
|
|||
with Ada.Environment_Variables; use Ada.Environment_Variables;
|
||||
with Ada.Text_Io; use Ada.Text_Io;
|
||||
|
||||
procedure Print_Path is
|
||||
begin
|
||||
Put_Line("Path : " & Value("PATH"));
|
||||
end Print_Path;
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
with Ada.Environment_Variables; use Ada.Environment_Variables;
|
||||
with Ada.Text_Io; use Ada.Text_Io;
|
||||
|
||||
procedure Env_Vars is
|
||||
procedure Print_Vars(Name, Value : in String) is
|
||||
begin
|
||||
Put_Line(Name & " : " & Value);
|
||||
end Print_Vars;
|
||||
begin
|
||||
Iterate(Print_Vars'access);
|
||||
end Env_Vars;
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
with Ada.Wide_Wide_Text_IO;
|
||||
|
||||
with League.Application;
|
||||
with League.Strings;
|
||||
|
||||
procedure Main is
|
||||
|
||||
function "+"
|
||||
(Item : Wide_Wide_String) return League.Strings.Universal_String
|
||||
renames League.Strings.To_Universal_String;
|
||||
|
||||
begin
|
||||
Ada.Wide_Wide_Text_IO.Put_Line
|
||||
(League.Application.Environment.Value (+"HOME").To_Wide_Wide_String);
|
||||
end Main;
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
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
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
IDENTIFICATION DIVISION.
|
||||
PROGRAM-ID. Environment-Vars.
|
||||
|
||||
DATA DIVISION.
|
||||
WORKING-STORAGE SECTION.
|
||||
01 home PIC X(75).
|
||||
|
||||
PROCEDURE DIVISION.
|
||||
* *> Method 1.
|
||||
ACCEPT home FROM ENVIRONMENT "HOME"
|
||||
DISPLAY home
|
||||
|
||||
* *> Method 2.
|
||||
DISPLAY "HOME" UPON ENVIRONMENT-NAME
|
||||
ACCEPT home FROM ENVIRONMENT-VALUE
|
||||
|
||||
GOBACK
|
||||
.
|
||||
|
|
@ -1 +0,0 @@
|
|||
(getenv "HOME")
|
||||
|
|
@ -1 +0,0 @@
|
|||
puts(1,getenv("PATH"))
|
||||
|
|
@ -1,4 +1,2 @@
|
|||
(notonline)-->
|
||||
<span style="color: #008080;">without</span> <span style="color: #008080;">js</span> <span style="color: #000080;font-style:italic;">-- none such in a browser, that I know of</span>
|
||||
<span style="color: #0000FF;">?</span><span style="color: #7060A8;">getenv</span><span style="color: #0000FF;">(</span><span style="color: #008000;">"PATH"</span><span style="color: #0000FF;">)</span>
|
||||
<!--
|
||||
without js -- none such in a browser, that I know of
|
||||
?getenv("PATH")
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
$Env:Path
|
||||
|
|
@ -1 +0,0 @@
|
|||
Get-ChildItem Env:
|
||||
|
|
@ -1 +0,0 @@
|
|||
print get-env "HOME"
|
||||
Loading…
Add table
Add a link
Reference in a new issue