We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbc105c commit a8fa801Copy full SHA for a8fa801
test/TestSys.m
@@ -40,12 +40,12 @@ function test_env_run(tc)
40
if ispc
41
% in ComSpec, echo is a special shell cmd like "dir" -- also doesn't
42
% work in python subprocess.run
43
- cmd = ["pwsh", "-c" "(Get-ChildItem Env:" + names(i) + ").Value"];
+ cmd = ["pwsh", "-c", "(Get-ChildItem Env:" + names(i) + ").Value"];
44
else
45
cmd = ["sh", "-c", "echo $" + names(i)];
46
end
47
48
- [ret, out] = stdlib.subprocess_run(cmd, env=env);
+ [ret, out] = stdlib.subprocess_run(cmd, "env", env);
49
tc.verifyEqual(ret, 0)
50
tc.verifySubstring(out, vals(i))
51
0 commit comments