From e27dc7bddf1b24cb73fe9a1d22ab55b245074309 Mon Sep 17 00:00:00 2001 From: Lisa Milne Date: Fri, 15 Dec 2023 01:23:32 +1000 Subject: [PATCH] fix bug when redirecting stdout to /dev/null --- clite/shell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clite/shell.js b/clite/shell.js index 4422ef3..b74188e 100644 --- a/clite/shell.js +++ b/clite/shell.js @@ -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:{