Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
Var v = Environ("SystemRoot")
|
||||
Print v
|
||||
Sleep
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
println( System.getenv('PATH') )
|
||||
println( $home )
|
||||
println( $user )
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
get env \foo HOME
|
||||
show "\foo"
|
||||
|
|
@ -0,0 +1 @@
|
|||
get env \foo "X Y Z"
|
||||
5
Task/Environment-variables/I/environment-variables.i
Normal file
5
Task/Environment-variables/I/environment-variables.i
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
software {
|
||||
print(load("$HOME"))
|
||||
print(load("$USER"))
|
||||
print(load("$PATH"))
|
||||
}
|
||||
15
Task/Environment-variables/Lasso/environment-variables.lasso
Normal file
15
Task/Environment-variables/Lasso/environment-variables.lasso
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/lasso9
|
||||
|
||||
define getenv(sysvar::string) => {
|
||||
local(regexp = regexp(
|
||||
-find = `(?m)^` + #sysvar + `=(.*?)$`,
|
||||
-input = sys_environ -> join('\n'),
|
||||
-ignorecase
|
||||
))
|
||||
return #regexp ->find ? #regexp -> matchString(1)
|
||||
}
|
||||
|
||||
stdoutnl(getenv('HOME'))
|
||||
stdoutnl(getenv('PATH'))
|
||||
stdoutnl(getenv('USER'))
|
||||
stdoutnl(getenv('WHAT'))
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
sx = xtra("Shell").new()
|
||||
if the platform contains "win" then
|
||||
path = sx.shell_cmd("echo %PATH%").line[1]
|
||||
else
|
||||
path = sx.shell_cmd("echo $PATH").line[1]
|
||||
end if
|
||||
2
Task/Environment-variables/Nim/environment-variables.nim
Normal file
2
Task/Environment-variables/Nim/environment-variables.nim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import os
|
||||
echo getEnv("HOME")
|
||||
|
|
@ -0,0 +1 @@
|
|||
System getEnv("PATH") println
|
||||
|
|
@ -0,0 +1 @@
|
|||
?getenv("PATH")
|
||||
|
|
@ -0,0 +1 @@
|
|||
see get("path")
|
||||
|
|
@ -0,0 +1 @@
|
|||
say ENV{'HOME'};
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
import "system"
|
||||
out (system.getenv "HOME") endl console
|
||||
1
Task/Environment-variables/jq/environment-variables.jq
Normal file
1
Task/Environment-variables/jq/environment-variables.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
env.HOME
|
||||
Loading…
Add table
Add a link
Reference in a new issue