mirror of
https://github.com/janet-lang/janet
synced 2025-01-13 09:00:26 +00:00
Fix #636
This commit is contained in:
parent
6713b23a65
commit
7e2c433abc
@ -941,7 +941,6 @@ static Janet os_execute_impl(int32_t argc, Janet *argv, int is_spawn) {
|
|||||||
janet_unlock_environ();
|
janet_unlock_environ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Wait for child */
|
|
||||||
os_execute_cleanup(envp, child_argv);
|
os_execute_cleanup(envp, child_argv);
|
||||||
if (status) {
|
if (status) {
|
||||||
janet_panicf("%p: %s", argv[0], strerror(errno));
|
janet_panicf("%p: %s", argv[0], strerror(errno));
|
||||||
|
@ -143,4 +143,7 @@
|
|||||||
(assert (< 100 1e23) "greater than immediate 1")
|
(assert (< 100 1e23) "greater than immediate 1")
|
||||||
(assert (< 1000 1e23) "greater than immediate 2")
|
(assert (< 1000 1e23) "greater than immediate 2")
|
||||||
|
|
||||||
|
# os/execute with environment variables
|
||||||
|
(assert (= 0 (os/execute [(dyn :executable) "-e" "(+ 1 2 3)"] :pe {"HELLO" "WORLD"})) "os/execute with env")
|
||||||
|
|
||||||
(end-suite)
|
(end-suite)
|
||||||
|
Loading…
Reference in New Issue
Block a user