JanetDocsPlaygroundI'm feeling luckyGitHub sign in

os/setenv



    cfunction
    src/core/os.c on line 1204, column 1

    (os/setenv variable value)

    Set an environment variable.


1 exampleSign in to add an example
Loading...
(spit "/tmp/hello.sh" "#!/bin/bash\necho 'Hello from Bash!'\n")
(os/chmod "/tmp/hello.sh" "rwx------")
(os/setenv "PATH" (string (os/getenv "PATH") ":/tmp"))
(os/shell "hello.sh")
cellularmitosisPlayground