mirror of
https://codeberg.org/TicklishHoneyBee/CLIte.git
synced 2026-03-11 09:04:37 +00:00
add true and false shell builtins
This commit is contained in:
parent
e27dc7bddf
commit
9da752f308
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue