Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -0,0 +1 @@
"HOME" getenv .

View file

@ -0,0 +1,7 @@
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;

View file

@ -0,0 +1,11 @@
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;

View file

@ -0,0 +1,15 @@
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;

View file

@ -1 +1,3 @@
tell application "Finder" to get name of home
system attribute "HOME"
system attribute "PATH"
system attribute "USER"

View file

@ -1 +1 @@
"HOME : " & (do shell script "echo $HOME" & ", PATH : " & (do shell script "echo $PATH" & ", USER : " & (do shell script "echo $USER")))
tell application "Finder" to get name of home

View file

@ -0,0 +1 @@
"HOME : " & (do shell script "echo $HOME" & ", PATH : " & (do shell script "echo $PATH" & ", USER : " & (do shell script "echo $USER")))

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

View file

@ -0,0 +1,2 @@
(getenv "PATH")
(getenv "USERNAME")

View file

@ -0,0 +1,18 @@
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
.

View file

@ -0,0 +1 @@
ENV["ComSpec"] # => C:\WINDOWS\system32\cmd.exe

View file

@ -0,0 +1 @@
(getenv "HOME")

View file

@ -0,0 +1 @@
puts(1,getenv("PATH"))

View file

@ -0,0 +1 @@
(os/getenv "HOME")

View file

@ -0,0 +1 @@
print(os.getenv("SHELL"))

View file

@ -0,0 +1 @@
$Env:Path

View file

@ -0,0 +1 @@
Get-ChildItem Env:

View file

@ -0,0 +1,2 @@
print get-env "HOME"
print list-env ;; to print all variables

View file

@ -0,0 +1,10 @@
env? "systemroot"
[String: C:\WINDOWS]
env? "windir"
[String: C:\WINDOWS]
env? "programfiles"
[String: C:\Program Files]
env? "homedrive"
[String: C:]
env? "processor_architecture"
[String: AMD64]