Skip to content

Commit 0f03912

Browse files
committed
updated more notes on how shell works
1 parent b8e2b49 commit 0f03912

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dev/node-fs-utils-dev/tests/dev-specific/spawnCmd-cwd.test.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ describe('spawncmd empty env', function(){
126126
//
127127
let output,options;
128128
options = {
129-
shell:false,
129+
// shell:false,
130130
// shell:"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
131-
// shell:true,
131+
shell:true,
132132
env:{},
133133
envs:{
134134
NODE_FIRST_ARG:'shell-no-env',
@@ -153,6 +153,8 @@ describe('spawncmd empty env', function(){
153153
"WINDIR": "C:\\Windows"
154154
}
155155
};
156+
//windowsVerbatimArguments: true,//for windows?
157+
//also it uses COMSPEC... interesting...
156158
output = spawnSync(pwsh,['dev/node-fs-utils-dev/tests/dev-specific/generate-env-logs.ps1'],options)
157159
if(output.status !==0){
158160
console.error('stderr: ',output.stderr?.toString());

0 commit comments

Comments
 (0)