fix bug when redirecting stdout to /dev/null

This commit is contained in:
Lisa Milne 2023-12-15 01:23:32 +10:00
parent 9ec6e0e26a
commit e27dc7bddf

View file

@ -543,7 +543,7 @@ clite.commands.load('sh',function(args,env,io) {
exec.cfg.closout = false;
}
exec.io.stdout = stdio.open('/dev/null',stdio.flags.O_WRONLY);
exec.cfg.closin = true;
exec.cfg.closout = true;
}
},
stderr:{