JanetDocsI'm feeling luckyGithub sign in

os/setenv



    cfunction

    (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")
cellularmitosis