JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

spork/sh/exec-slurp

spork


    function
    /usr/local/lib/janet/spork/sh.janet on line 23, column 1

    (exec-slurp & args)

    It executes args with `os/spawn` and throws an error if the process 
    returns with non-zero exit code. If the process exits with zero 
    exit code, this function trims standard output of the process and 
    returns it. Before the function finishes, the spawned process is 
    closed for resource control.


0 examplesSign in to add an example
Loading...