From 9da752f308ed6fec3c5d239a7cf5dce6d8bd5fb9 Mon Sep 17 00:00:00 2001 From: Lisa Milne Date: Fri, 15 Dec 2023 11:54:48 +1000 Subject: [PATCH] add true and false shell builtins --- clite/shell.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clite/shell.js b/clite/shell.js index b74188e..28c2540 100644 --- a/clite/shell.js +++ b/clite/shell.js @@ -82,6 +82,12 @@ clite.commands.load('sh',function(args,env,io) { env[parts[0]] = parts[1]; return 0; }, + true:function(args,io) { + return 0; + }, + false:function(args,io) { + return 1; + }, exit:function(args,io) { has_exited = true; var ev = 0;